The PluralRules
object is a constructor for objects that enable plural sensitive formatting
and plural language rules.
Documentation PluralRules by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static methods
staticsupportedLocalesOf(locales:String, ?options:PluralRulesSupportedLocalesOfOptions):Array<String>
staticsupportedLocalesOf(locales:Array<String>, ?options:PluralRulesSupportedLocalesOfOptions):Array<String>
Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
Constructor
new(?locales:String, ?options:PluralRulesOptions)
new(?locales:Array<String>, ?options:PluralRulesOptions)
Methods
resolvedOptions():PluralRulesResolvedOptions
Returns a new object with properties reflecting the locale and collation options computed during initialization of the object.