Cldr.Currency.currencies_for_locale-exclamation-mark
You're seeing just the function
currencies_for_locale-exclamation-mark, go back to Cldr.Currency module for more information.
Link to this function
currencies_for_locale!(locale, backend, only \\ :all, except \\ nil)
View SourceSpecs
currencies_for_locale!( Cldr.Locale.locale_name() | Cldr.LanguageTag.t(), Cldr.backend(), only :: filter(), except :: filter() ) :: map() | no_return()
Returns a map of the metadata for all currencies for a given locale and raises on error.
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 modulecurrency_statusis:all,:current,:historic,unannotatedor:tender; or a list of one or more status. The default is:all. SeeCldr.Currency.currency_filter/2.
Returns
{:ok, currency_map}orraises an exception
Example
#=> MyApp.Cldr.Currency.currencies_for_locale! "en" %{
FJD: %Cldr.Currency{
cash_digits: 2,
cash_rounding: 0,
code: "FJD",
count: %{one: "Fijian dollar", other: "Fijian dollars"},
digits: 2,
from: nil,
iso_digits: 2,
name: "Fijian Dollar",
narrow_symbol: "$",
rounding: 0,
symbol: "FJD",
tender: true,
to: nil
},
SUR: %Cldr.Currency{
cash_digits: 2,
cash_rounding: 0,
code: "SUR",
count: %{one: "Soviet rouble", other: "Soviet roubles"},
digits: 2,
from: nil,
iso_digits: nil,
name: "Soviet Rouble",
narrow_symbol: nil,
rounding: 0,
symbol: "SUR",
tender: true,
to: nil
},
...}