Type aliases
DateTime
DateTime: string | number | Date
DayNames
DayNames: [string, string, string, string, string, string, string]
LocaleResolver
Locale
Resolver: (i18n: I18n, locale: string) => string[]
Type declaration
-
-
(i18n: I18n, locale: string): string[]
-
Parameters
Returns string[]
MissingPlaceholderHandler
Missing
PlaceholderHandler: (i18n: I18n, placeholder: string, message: string, options: Dict) => string
Type declaration
-
-
(i18n: I18n, placeholder: string, message: string, options: Dict): string
-
Parameters
-
-
placeholder: string
-
message: string
-
options: Dict
Returns string
MissingTranslationStrategy
Missing
TranslationStrategy: (i18n: I18n, scope: Scope, options: Dict) => string
Type declaration
-
-
Parameters
Returns string
MonthNames
MonthNames: [null, string, string, string, string, string, string, string, string, string, string, string, string]
NullPlaceholderHandler
Null
PlaceholderHandler: (i18n: I18n, placeholder: string, message: string, options: Dict) => string
Type declaration
-
-
(i18n: I18n, placeholder: string, message: string, options: Dict): string
-
Parameters
-
-
placeholder: string
-
message: string
-
options: Dict
Returns string
NumberToDelimitedOptions
NumberToDelimitedOptions: { delimiter: string; delimiterPattern: RegExp; separator: string }
Type declaration
-
delimiter: string
-
delimiterPattern: RegExp
-
separator: string
NumberToHumanUnits
NumberToHumanUnits: {}
NumberToPercentageOptions
NumberToRoundedOptions
Number
ToRoundedOptions: Omit<FormatNumberOptions, "format" | "negativeFormat" | "raise"> & { precision: number }
Numeric
Numeric: BigNumber | string | number
OnChangeHandler
On
ChangeHandler: (i18n: I18n) => void
Pluralizer
Pluralizer
: (i18n
: I18n, count
: number) => string[]
Type declaration
-
-
(i18n: I18n, count: number): string[]
-
Parameters
Returns string[]
PrimitiveType
PrimitiveType: number | string | null | undefined | boolean
RoundingMode
RoundingMode: "up" | "down" | "truncate" | "halfUp" | "default" | "halfDown" | "halfEven" | "banker" | "ceiling" | "ceil" | "floor"
Scope
Scope: string | string[]
Controls handling of arithmetic exceptions and rounding.