Cldr.Currency.current_currency_for_territory
You're seeing just the function
current_currency_for_territory
, go back to Cldr.Currency module for more information.
Specs
current_currency_for_territory(Cldr.territory()) :: code() | nil | {:error, {module(), String.t()}}
Returns the current currency for a given territory.
Arguments
territory
is any valid territory name returned byCldr.known_territories/0
Examples
iex> Cldr.Currency.current_currency_for_territory :US
:USD
iex> Cldr.Currency.current_currency_for_territory :AU
:AUD