Cldr.put_default_locale
You're seeing just the function
put_default_locale
, go back to Cldr module for more information.
Set's the system default locale.
The locale set here is the based level
system default equivalent to setting the
:default_locale
key in config.exs
.
Arguments
locale
is aCldr.LanguageTag
struct returned byCldr.Locale.new!/2
with a non-nil:cldr_locale_name
Returns
{:ok, locale}
Sets the system default locale.
The locale set here is the based level
system default equivalent to setting the
:default_locale
key in config.exs
.
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
Returns
{:ok, locale}
or{:error, {exception, reason}}