Cldr.known_rbnf_locale_name
You're seeing just the function
known_rbnf_locale_name
, go back to Cldr module for more information.
Link to this function
known_rbnf_locale_name(locale_name, backend \\ default_backend!())
View SourceSpecs
known_rbnf_locale_name(Cldr.Locale.locale_name(), backend()) :: String.t() | false
Returns either the RBNF locale_name
or false
based upon
whether the locale name is configured in Cldr
and has RBNF rules defined.
Arguments
locale
is any valid locale name returned byCldr.known_locale_names/1
backend
is any module that includesuse Cldr
and therefore is aCldr
backend module. The default isCldr.default_backend/0
. Note thatCldr.default_backend/0
will raise an exception if no:default_backend
is configured under the:ex_cldr
key inconfig.exs
.
Examples
iex> Cldr.known_rbnf_locale_name("en", TestBackend.Cldr)
"en"
iex> Cldr.known_rbnf_locale_name("en-SA", TestBackend.Cldr)
false