Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Locale's currency is detected case-insensitively while locale-specific formatting is detected case-sensitively #50

Open
mmarvick opened this issue Jan 23, 2018 · 0 comments

Comments

@mmarvick
Copy link

The mapping between a locale and the currency is done case-insensitively, but the mapping between a locale and its locale format is done case sensitively. This can cause a locale's currency to be recognized, but not the formatting, if the user is not careful.

> currency.format("1234.56", { locale: 'en-ie' });
'1 234,56 €'
> currency.format("1234.56", { locale: 'en-IE' });
'€ 1,234.56'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant