Money.Cldr.Currency.current_currency_from_locale
You're seeing just the function
current_currency_from_locale
, go back to Money.Cldr.Currency module for more information.
Returns the current currency for a given locale.
This function does not consider the U
extenion
parameters cu
or rg
. It is recommended to us
Cldr.Currency.currency_from_locale/1
in most
circumstances.
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.current_currency_from_locale "en"
:USD
iex> MyApp.Cldr.Currency.current_currency_from_locale "en-AU"
:AUD