CLDRex v0.0.7 CLDRex.Currencies

Provide common data related to currencies.

Summary

Functions

Return a Map of currencies localized in the give locale

A list of supported currency codes

Types

locale :: atom | String.t

Functions

all_for(locale)

Specs

all_for(locale) :: Map.t

Return a Map of currencies localized in the give locale.

Examples

iex> CLDRex.Currencies.all_for(:en)
%{"XBB" => "European Monetary Unit", "XEU" => "European Currency Unit",
  "SKK" => "Slovak Koruna", "AUD" => "Australian Dollar",
  "CZK" => "Czech Republic Koruna", "ISJ" => "Icelandic Króna (1918-1981)",
  "BRC" => "Brazilian Cruzado (1986-1989)", "IDR" => "Indonesian Rupiah",
  "UYP" => "Uruguayan Peso (1975-1993)", "VEF" => "Venezuelan Bolívar",
  "UAH" => "Ukrainian Hryvnia", "KMF" => "Comorian Franc",
  "NGN" => "Nigerian Naira", "NAD" => "Namibian Dollar",
  "LUC" => "Luxembourgian Convertible Franc", "AWG" => "Aruban Florin",
  "BRZ" => "Brazilian Cruzeiro (1942-1967)", ...}
currency_codes()

Specs

currency_codes :: list

A list of supported currency codes.

Examples

iex> CLDRex.Currencies.currency_codes
["XBB", "XEU", "SKK", "AUD", "CZK", "ISJ", "BRC", "IDR", "UYP", "VEF", "UAH",
 "KMF", "NGN", "NAD", "LUC", "AWG", "BRZ", "AOK", "SHP", "DEM", "UGS", "ECS",
 "BRR", "HUF", "INR", "TPE", "GYD", "MCF", "USS", "ALK", "TJR", "BGO", "BUK",
 "DKK", "LSL", "AZM", "ZRN", "MKN", "GHC", "JMD", "NOK", "GWP", "CVE", "RUR",
 "BDT", "NIC", "LAK", "XFO", "KHR", "SRD", ...]