Intl.NumberFormat.format changed grouping character position in 'it' culture
Categories
(Core :: JavaScript: Internationalization API, defect)
Tracking
()
People
(Reporter: roberto.carettoni, Unassigned)
References
Details
Steps to reproduce:
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Starting from version 134 seems that the grouping character position is changed in 'it' locale.
The issue seems probably due to a change from "1" to "2" in the property "minimumGroupingDigits" in cldr/common/main/it.xml config file
Run the following snippet:
let intl = Intl.NumberFormat('it', { minimumIntegerDigits: 1, minimumFractionDigits: 2, maximumFractionDigits: 2, style: "decimal" });
let myNumber = 1000;
console.log(intl.format(myNumber));
myNumber = 10000;
console.log(intl.format(myNumber));
Actual results:
"1000,00"
"10.000,00"
Expected results:
"1.000,00"
"10.000,00"
Comment 1•1 year ago
|
||
Firefox 134 uses ICU 76 (bug 1927706), which maps to CLDR 46.
Firefox is only a user of CLDR data (like other browsers), the issue needs to be reported upstream to CLDR
https://cldr.unicode.org/requesting_changes
Let me know if you can't file the ticket there, in case I'll do it.
Looks like other major locales are using 2 (e.g. Spanish, Portuguese), but not French or German. That doesn't seem right.
| Reporter | ||
Comment 2•1 year ago
|
||
First of all, thank you for the quick feedback and the useful informations.
Unfortunately, we are unable to open a ticket on the platform you indicated. We would be grateful if you could do it for us.
Indeed, this change seems to be an incorrect and unexpected behavior.
Comment 3•1 year ago
|
||
Comment 4•1 year ago
|
||
Update: this was closed as working by design
https://unicode-org.atlassian.net/browse/CLDR-18213?focusedCommentId=179637
Description
•