Cldr.Currency.current_currency_from_locale

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

current_currency_from_locale(locale)

View Source

Specs

current_currency_from_locale(Cldr.LanguageTag.t()) :: any()

Returns the current currency from a given locale.

This function does not consider the U extenion parameters cu or rg. It is recommended to us Cldr.Currency.currency_from_locale/1 in most circumstances.

Arguments

Examples

iex> Cldr.Currency.current_currency_from_locale "en", MyApp.Cldr
:USD

iex> Cldr.Currency.current_currency_from_locale "en-AU", MyApp.Cldr
:AUD
Link to this function

current_currency_from_locale(locale_name, backend)

View Source

Specs

current_currency_from_locale(Cldr.Locale.locale_name(), Cldr.backend()) ::
  code() | nil | {:error, {module(), String.t()}}