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, Union[int, Callable[[int], Union[bool, int]]]]