vue-mny
Currency formatting for all currencies, and all languages. As a simple Vue plugin.
v0.3.1
Setup
npm install vue-mny --save
const vueMny = ;Vue;
Usage
<span v-mny="moneyVariable"></span>
<span v-mny="{ input: moneyVariable, currency: 'EUR' }"></span> // shorthand:<span v-mnycode="moneyVariable"></span>
Options
locale: 'en-US' currency: 'USD' currencyDisplay: 'symbol'
locale
default: en-US
A string with a BCP 47 language tag.
currency
default: USD
Possible values are the ISO 4217 currency codes, such as USD
for the US dollar, EUR
for the euro, or CNY
for the Chinese RMB.
currencyDisplay
default: symbol
How to display the currency in currency formatting. Possible values are symbol
to use a localized currency symbol such as €, code
to use the ISO currency code, name
to use a localized currency name such as dollar
.
Changelog
version 0.3.1
- Patch
version 0.3.0
- Major improvements...