-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Incorrect Currency & Number Format for es-us Locale #8931
Comments
I submitted a PR #8965 that would correct this issue. |
@mgallag I think you are right on the use of |
@lgalfaso The number formatting that you describe sounds correct for es-es but not es-us. I live in the US and although I am not a spanish speaker, seeing a comma used in an US dollar amount where the decimal point should be seems like it could be misleading. If you dig through the data in the latest CLDR release (see links below) you will see that the group separator for the es-US locale is http://cldr.unicode.org/index/downloads/cldr-25 |
Opened PR #9013 that updates the Closure Slurper script to pull down missing i18n number format rules. It solves for the currency symbol in this issue but not for the group separator or decimal point. These are configured (IMHO incorrectly) in the Closure Library project. I will open an issue to track this in the Closure Library repo. Once resolved, we will need to regenerate the Angular locale files to pick up the change. The PR also added and updated many locale files in Angular which I believe may have had similar issues. |
I think there are already 3 different PRs fixing this, if not more. @mgallag, The thing is, these scripts are automatically generated, so the appropriate thing to do is to fix the scripts which generate them, not the locale sources themselves. However, I've said we probably should land these fixes because we don't run the generator scripts very frequently --- I haven't heard anyone elses opinion on this however. |
@caitp I did fix the generator scripts, then I regenerated them. Please check the PR. |
Yes, I see you're right, that puts it above the other fixes. Unfortunately the diff is likely to crash browsers whenever we try to look at it =) Anyways, I think we can merge that, but please: squash the commits (you want 2 commits: the updated generators and the regenerated locales), and you also need to update the commit message to follow the rules in https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit |
Fixes number formatting and symbols for many locales. Adds support for additional locales. Closes angular#8931 Closes angular#8583 Closees angular#7799
Fixes number formatting and symbols for many locales. Adds support for additional locales. Closes angular#8931 Closes angular#8583 Closes angular#7799
Fixes number formatting and symbols for many locales. Adds support for additional locales. Closes angular#8931 Closes angular#8583 Closes angular#7799
The en-us locale configuration incorrectly uses a comma for number formatting, € as a default currency symbol, places the currency symbol after the amount and uses a decimal as the group separator. Number and currency rules should be similar to en-us locale rules.
Expected:
Actual:
The text was updated successfully, but these errors were encountered: