Namespace for CLDR-related utility methods.
Provided by the mediawiki.cldr ResourceLoader module.
Methods
getPluralForm(number, pluralRules) → {number}static
#
Get the plural form index for the number.
In case none of the rules passed, we return pluralRules.length -
that means it is the "other" form.
Parameters:
| Name | Type | Description |
|---|---|---|
number |
number | |
pluralRules |
Array |
Returns:
plural form index
- Type
- number
- Source:
Get the plural form index for the number.