SoftBank.Cldr.Currency.strings_for_currency

You're seeing just the function strings_for_currency, go back to SoftBank.Cldr.Currency module for more information.
Link to this function

strings_for_currency(currency, locale)

View Source

Returns the strings associated with a currency in a given locale.

Arguments

  • currency is an ISO4217 currency code

  • locale is any valid locale name returned by MyApp.Cldr.known_locale_names/0 or a Cldr.LanguageTag struct returned by MyApp.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"]