@piotrgorecki/i18n-currency-name

1.3.0 • Public • Published

i18n-currency-name

install size

Translates the currency code (ISO 4217) to the localized currency name.

Install

$ npm install @piotrgorecki/i18n-currency-name
$ yarn add @piotrgorecki/i18n-currency-name

Usage

var currencyToName = require("@piotrgorecki/i18n-currency-name");

currencyToName("USD", "de")  // "Dollar"
currencyToName("USD", "en")  // "US Dollar"
currencyToName("USD", "es")  // "Dólar estadounidense"
currencyToName("USD", "pl")  // "Dolar Amerykański"
currencyToName("XYZ", "en")  // undefined
currencyToName("USD", "xyz") // undefined

Supported locals

["da", "de", "el", "en", "es", "fi", "fr", "it", "ja", "ko", "lt", "nb", "pl", "pt", "ro", "sv", "tr", "ua", "ur", "zh"]

Readme

Keywords

Package Sidebar

Install

npm i @piotrgorecki/i18n-currency-name

Weekly Downloads

892

Version

1.3.0

License

MIT

Unpacked Size

120 kB

Total Files

27

Last publish

Collaborators

  • piotrgorecki