formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

currently `{variable, number, currency}` doesn't really work #22

Closed drewfish closed 5 years ago

drewfish commented 10 years ago

I get the following error: Currency code is required when style is currency.

We can do better, by getting the currency for the current locale. As java does: http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html

drewfish commented 10 years ago

(pssst.... https://www.npmjs.org/package/currency-codes)

ericf commented 10 years ago

Relates to: https://github.com/yahoo/formatjs-site/issues/86

flqw commented 8 years ago

Is there any update on this or some way to make this work without first formatting the number?