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

Incorrect locale number formats: they're out there #19

Open
sidewayss opened this issue Nov 28, 2024 · 0 comments
Open

Incorrect locale number formats: they're out there #19

sidewayss opened this issue Nov 28, 2024 · 0 comments
Labels
browser Browser bug or misbehavior known behavior

Comments

@sidewayss
Copy link
Owner

sidewayss commented Nov 28, 2024

For example, I live in Costa Rica. Here, based on what I've seen in my bank statements and the bank's online apps, official gazette publications, and based on a conversation with a lawyer here, the official thousands separator is period. Yet Intl.NumberFormat with locale set to es-CR uses space as the thousands separator. A google search yields similar information.

If I go to an official Ministerio de Hacienda document to find numbers formatted with currency, I see a mix of period and space as the thousands separator. Periods in the paragraphs, spaces in the tables. My guess is that the paragraphs were typed in by a person, whereas the tables were formatted by MS Excel using es-CR as the locale. In which case the locale setting is just wrong.

Not to mention that in everyday life the de facto standard is the Anglo comma for thousands and period for decimals.

Reviewing and validating all the locales is a big job and not really my business. I wanted to note this for anyone who encounters similar discrepancies.

@sidewayss sidewayss added browser Browser bug or misbehavior known behavior labels Nov 28, 2024
@sidewayss sidewayss changed the title Locale number formats questionable Incorrect locale number formats: they're out there Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Browser bug or misbehavior known behavior
Projects
None yet
Development

No branches or pull requests

1 participant