Cldr.Currency.currency_format_from_locale
You're seeing just the function
currency_format_from_locale
, go back to Cldr.Currency module for more information.
Returns the effective currency format for a given locale
Arguments
locale
aCldr.LanguageTag
struct returned byCldr.Locale.new!/2
Returns
- Either
:accounting
or:currency
Examples
iex> {:ok, locale} = Cldr.validate_locale "en", MyApp.Cldr
iex> Cldr.Currency.currency_format_from_locale locale
:currency
iex> {:ok, locale} = Cldr.validate_locale "en-AU-u-cu-eur", MyApp.Cldr
iex> Cldr.Currency.currency_format_from_locale locale
:currency
iex> {:ok, locale} = Cldr.validate_locale "en-AU-u-cu-eur-cf-account", MyApp.Cldr
iex> Cldr.Currency.currency_format_from_locale locale
:accounting