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