Cldr.Currency.currency_history_for_locale
You're seeing just the function
currency_history_for_locale, go back to Cldr.Currency module for more information.
Specs
currency_history_for_locale(Cldr.LanguageTag.t()) :: {:ok, map()} | {:error, {atom(), binary()}}
Returns a list of historic and the current currency for a given locale.
Arguments
localeis any valid locale name returned byCldr.known_locale_names/1or aCldr.LanguageTagstruct returned byCldr.Locale.new!/2backendis any module that includesuse Cldrand therefore is aCldrbackend module
Example
iex> Cldr.Currency.currency_history_for_locale "en", MyApp.Cldr
{:ok,
%{
USD: %{from: ~D[1792-01-01], to: nil},
USN: %{tender: false},
USS: %{from: nil, tender: false, to: ~D[2014-03-01]}
}
}
Specs
currency_history_for_locale(Cldr.Locale.locale_name(), Cldr.backend()) :: {:ok, map()} | {:error, {module(), String.t()}}