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.
Link to this function

currency_format_from_locale(language_tag)

View Source

Returns the effective currency format for a given locale

Arguments

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