MessageFormatterOptions
Configures a MessageFormatter instance. See MessageformatFuncMap.
Syntax
{ language?: string, region?: string, plurals?: PluralRules, formatters?: MessageFormatFuncMap, cacheSize?: number }
Properties
plurals: PluralRules
- A plural rules instance. This lets you explicitly provide the plural rules you want the formatter to use. If omitted, the plural rules will be resolved using the language and region options.
language: string
- An ISO 639 language identifier. Will be used to resolve the plural rules.
region: string
- An ISO 3166-1 or UN M.49 region code. Will be used to resolve the plural rules.
formatters: MessageFormatFuncMap
- Custom formatter functions
cacheSize: number
- Indicates the number of parsed messages to keep in the least-recently-used cache
Defaults
{
language: 'root',
cacheSize: 100
}