MyApp.Cldr.Currency.currency_strings-exclamation-mark

You're seeing just the function currency_strings-exclamation-mark, go back to MyApp.Cldr.Currency module for more information.
Link to this function

currency_strings!(locale_name, only \\ :all, except \\ nil)

View Source

Specs

currency_strings!(
  Cldr.LanguageTag.t() | Cldr.Locale.locale_name(),
  only :: Cldr.Currency.filter(),
  except :: Cldr.Currency.filter()
) :: map() | no_return()

Returns a map that matches a currency string to a currency code or raises an exception.

A currency string is a localised name or symbol representing a currency in a locale-specific manner.

Arguments

Returns

  • {:ok, currency_string_map} or

  • raises an exception

Example

MyApp.Cldr.Currency.currency_strings! "en"
=> %{
  "mexican silver pesos" => :MXP,
  "sudanese dinar" => :SDD,
  "bad" => :BAD,
  "rsd" => :RSD,
  "swazi lilangeni" => :SZL,
  "zairean new zaire" => :ZRN,
  "guyanaese dollars" => :GYD,
  "equatorial guinean ekwele" => :GQE,
  ...
 }