MyApp.Cldr.known_locale_name
You're seeing just the function
known_locale_name
, go back to MyApp.Cldr module for more information.
Specs
known_locale_name(Cldr.Locale.locale_name()) :: String.t() | false
Returns either the locale_name
or false
based upon
whether the locale name is configured in Cldr
.
This is helpful when building a list of or
expressions
to return the first known locale name from a list.
Arguments
locale
is any valid locale name returned byMyApp.Cldr.known_locale_names/0
Examples
iex> MyApp.Cldr.known_locale_name "en-AU"
"en-AU"
iex> MyApp.Cldr.known_locale_name "en-SA"
false