Cldr.known_locale_name-question-mark
You're seeing just the function
known_locale_name-question-mark
, go back to Cldr module for more information.
Specs
known_locale_name?(Cldr.Locale.locale_name(), backend()) :: boolean()
Returns a boolean indicating if the specified locale name is configured and available in Cldr.
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_locale_name?("en", TestBackend.Cldr)
true
iex> Cldr.known_locale_name?("!!", TestBackend.Cldr)
false