2 * CLDR related utility methods.
9 * For the number, get the plural for index
10 * In case none of the rules passed, we return pluralRules.length
11 * That means it is the "other" form.
13 * @param {Array} pluralRules
14 * @return {number} plural form index
16 getPluralForm: function ( number
, pluralRules
) {
18 for ( i
= 0; i
< pluralRules
.length
; i
++ ) {
19 if ( mw
.libs
.pluralRuleParser( pluralRules
[i
], number
) ) {