Closed Bug 1940923 Opened 1 year ago Closed 1 year ago

Intl.NumberFormat.format changed grouping character position in 'it' culture

Categories

(Core :: JavaScript: Internationalization API, defect)

Firefox 134
defect

Tracking

()

RESOLVED MOVED

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

https://github.com/unicode-org/cldr/blob/952fcca88a04c3acaad97364efce918b56b87dcf/common/main/it.xml#L5226

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"

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.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → MOVED

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.

Duplicate of this bug: 1963553
You need to log in before you can comment on or make changes to this bug.