MyApp.Cldr.Gettext.Plural.nplurals
You're seeing just the function
nplurals
, go back to MyApp.Cldr.Gettext.Plural module for more information.
Specs
nplurals(Cldr.Locale.locale_name() | Cldr.LanguageTag.t()) :: pos_integer() | no_return()
Returns how many plural forms exist for a given locale.
locale
is either a locale name in the listMyApp.Cldr.known_locale_names/0
or a%LanguageTag{}
as returned byCldr.Locale.new/2
Examples
iex> MyApp.Cldr.Gettext.Plural.nplurals("pl")
4
iex> MyApp.Cldr.Gettext.Plural.nplurals("en")
2