$_rulesMap
$_rulesMap : array
A map of locale => plurals group used to determine which plural rules apply to the language
Utility class used to determine the plural number to be used for a variable base on the locale
calculate(string $locale, integer|float $n) : integer
Returns the plural form number for the passed locale corresponding to the countable provided in $n.
string | $locale | The locale to get the rule calculated for. |
integer|float | $n | The number to apply the rules to. |
The plural rule number that should be used.
Loading…