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
locale
is any valid locale name returned byCldr.known_locale_names/1
or aCldr.LanguageTag
struct returned byCldr.Locale.new!/2
backend
is any module that includesuse Cldr
and therefore is aCldr
backend 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()}}