globalizejs / globalizejs/globalize

Specific capitalization required for currency iso values.

Open
#745 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.