Cldr v0.1.0 Cldr.Gettext.Plural

Defines a Plural module for Gettext that uses the Cldr plural rules.

Summary

Functions

Returns the number of possible plural forms in the given locale

Returns the plural form in the given locale for the given count of elements

Functions

nplurals(locale)

Returns the number of possible plural forms in the given locale.

Callback implementation for Gettext.Plural.nplurals/1.

plural(locale, n)

Returns the plural form in the given locale for the given count of elements.

Callback implementation for Gettext.Plural.plural/2.