Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toLocaleString bug formatting currencies in Spanish #3114

Open
eltercero opened this issue May 27, 2020 · 0 comments
Open

toLocaleString bug formatting currencies in Spanish #3114

eltercero opened this issue May 27, 2020 · 0 comments
Assignees
Labels

Comments

@eltercero
Copy link
Member

We are using toLocaleString to handle number formatting to strings in several places and it seems that this is the way the browser JS engine handles the Spanish locales:

Captura de pantalla 2020-05-27 a las 14 31 52

It only happens with numbers from 1000 to 9999. 10000 is properly formatted to 10.000.

It's kind of recent.

More information: https://stackoverflow.com/questions/57628055/tolocalestring-not-working-on-numbers-less-than-10000-in-all-browsers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants