Money.Cldr.Currency.strings_for_currency
You're seeing just the function
strings_for_currency
, go back to Money.Cldr.Currency module for more information.
Returns the strings associated with a currency in a given locale.
Arguments
currency
is an ISO4217 currency codelocale
is any valid locale name returned byMyApp.Cldr.known_locale_names/0
or aCldr.LanguageTag
struct returned byMyApp.Cldr.Locale.new!/1
Returns
A list of strings or
{:error, {exception, reason}}
Example
iex> MyApp.Cldr.Currency.strings_for_currency :AUD, "en"
["a$", "australian dollars", "aud", "australian dollar"]