mw.cldr

Namespace for CLDR-related utility methods. Provided by the mediawiki.cdlr ResourceLoader module.

Source:

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
Source:

Returns:

plural form index

Type
number
Get the plural form index for the number.