Cldr.put_default_locale

You're seeing just the function put_default_locale, go back to Cldr module for more information.
Link to this function

put_default_locale(locale)

View Source

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

Returns

  • {:ok, locale}
Link to this function

put_default_locale(locale_name, backend \\ default_backend!())

View Source

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 by Cldr.known_locale_names/1

  • backend is any module that includes use Cldr and therefore is a Cldr backend module

Returns

  • {:ok, locale} or

  • {:error, {exception, reason}}