class PluralizationRules
Returns the plural rules for a given locale.
static int | get(int $number, string $locale) Returns the plural position to use for the given locale and number. | |
static | set(callable $rule, string $locale) Overrides the default plural rule for a given locale. |
Returns the plural position to use for the given locale and number.
int | $number | The number |
string | $locale | The locale |
int | The plural position |
Overrides the default plural rule for a given locale.
callable | $rule | A PHP callable |
string | $locale | The locale |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/PluralizationRules.html