plural — i18n Plural rules#

Module containing plural rules of various languages.

plural.plural_rule(lang)[source]#

Return the plural rule for a given lang.

New in version 4.3.

Parameters:

lang (str) –

Return type:

dict[str, int | Callable[[int], bool | int]]