globalizejs / globalizejs/globalize
Specific capitalization required for currency iso values.
Open
- Dominant language
- JavaScript
- Stars
- 4.8k
- Forks
- 585
- PR merge metrics
- No merged PRs in 30d
Description
I was passing in `eur` to `Globalize.currencyFormatter` and getting a `missing cldr data` error, which was pretty confusing to track down. It turned out that I should have been passing `EUR` and it worked fine. Seems easy enough to do a `.toUpperCase()` on the currency value for users and/or detect lowercase letters and throw a more specific error.
Contributor guide
Assessment
This issue has not been assessed yet.