vue-i18n / general / NumberOptions
Interface: NumberOptions<Key, Locales>
Vue I18n General
Number Options
Remarks
Options for Number formatting API
Extends
NumberFormatOptions.LocaleOptions<Locales>
Type Parameters
| Type Parameter | Default type |
|---|---|
Key | string |
Locales | Locale |
Properties
compactDisplay?
ts
optional compactDisplay: "long" | "short";Inherited from
ts
Intl.NumberFormatOptions.compactDisplaycurrency?
ts
optional currency: string;Inherited from
ts
Intl.NumberFormatOptions.currencycurrencyDisplay?
ts
optional currencyDisplay: keyof NumberFormatOptionsCurrencyDisplayRegistry;Inherited from
ts
Intl.NumberFormatOptions.currencyDisplaycurrencySign?
ts
optional currencySign: "standard" | "accounting";Inherited from
ts
Intl.NumberFormatOptions.currencySignfallbackWarn?
ts
optional fallbackWarn: boolean;Remarks
Whether do resolve on format keys when your language lacks a formatting for a key
key?
ts
optional key: Key;Remarks
The target format key
locale?
ts
optional locale: LocaleDetector<any[]> | Locales;Remarks
The locale of localization
Inherited from
ts
LocaleOptions.localelocaleMatcher?
ts
optional localeMatcher: "lookup" | "best fit";Inherited from
ts
Intl.NumberFormatOptions.localeMatchermaximumFractionDigits?
ts
optional maximumFractionDigits: number;Inherited from
ts
Intl.NumberFormatOptions.maximumFractionDigitsmaximumSignificantDigits?
ts
optional maximumSignificantDigits: number;Inherited from
ts
Intl.NumberFormatOptions.maximumSignificantDigitsminimumFractionDigits?
ts
optional minimumFractionDigits: number;Inherited from
ts
Intl.NumberFormatOptions.minimumFractionDigitsminimumIntegerDigits?
ts
optional minimumIntegerDigits: number;Inherited from
ts
Intl.NumberFormatOptions.minimumIntegerDigitsminimumSignificantDigits?
ts
optional minimumSignificantDigits: number;Inherited from
ts
Intl.NumberFormatOptions.minimumSignificantDigitsmissingWarn?
ts
optional missingWarn: boolean;Remarks
Whether suppress warnings outputted when localization fails
notation?
ts
optional notation: "standard" | "scientific" | "engineering" | "compact";Inherited from
ts
Intl.NumberFormatOptions.notationnumberingSystem?
ts
optional numberingSystem: string;Inherited from
ts
Intl.NumberFormatOptions.numberingSystempart?
ts
optional part: boolean;Remarks
Whether to use Intel.NumberFormat#formatToParts
roundingIncrement?
ts
optional roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000;Inherited from
ts
Intl.NumberFormatOptions.roundingIncrementroundingMode?
ts
optional roundingMode:
| "ceil"
| "floor"
| "expand"
| "trunc"
| "halfCeil"
| "halfFloor"
| "halfExpand"
| "halfTrunc"
| "halfEven";Inherited from
ts
Intl.NumberFormatOptions.roundingModeroundingPriority?
ts
optional roundingPriority: "auto" | "morePrecision" | "lessPrecision";Inherited from
ts
Intl.NumberFormatOptions.roundingPrioritysignDisplay?
ts
optional signDisplay: keyof NumberFormatOptionsSignDisplayRegistry;Inherited from
ts
Intl.NumberFormatOptions.signDisplaystyle?
ts
optional style: keyof NumberFormatOptionsStyleRegistry;Inherited from
ts
Intl.NumberFormatOptions.styletrailingZeroDisplay?
ts
optional trailingZeroDisplay: "auto" | "stripIfInteger";Inherited from
ts
Intl.NumberFormatOptions.trailingZeroDisplayunit?
ts
optional unit: string;Inherited from
ts
Intl.NumberFormatOptions.unitunitDisplay?
ts
optional unitDisplay: "long" | "short" | "narrow";Inherited from
ts
Intl.NumberFormatOptions.unitDisplayuseGrouping?
ts
optional useGrouping: boolean | keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false";Inherited from
ts
Intl.NumberFormatOptions.useGrouping