Closed
Bug 1931044
Opened 1 year ago
Closed 1 year ago
toLocalString in en-CA with USD and currencyDisplay: 'narrowSymbol' displays incorrectly
Categories
(Core :: JavaScript: Internationalization API, defect)
Tracking
()
RESOLVED
FIXED
134 Branch
| Tracking | Status | |
|---|---|---|
| firefox134 | --- | fixed |
People
(Reporter: emma, Unassigned)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Steps to reproduce:
Run the following command in the console
(600000).toLocaleString('en-CA', {style: 'currency', currencyDisplay: 'narrowSymbol', currency: 'USD'})
The important part is the 'narrowSymbol', as it should remove the currency code. From testing this only seems to happen with specifically 'en-CA' and 'USD', and I was unable to recreate this with any other currency (but there may be more with similar issues).
Actual results:
"US$600,000.00"
Expected results:
"$600,000.00"
Summary: toLocalString in en-CA with USD and currencyDisplay: 'narrowSymbol' → toLocalString in en-CA with USD and currencyDisplay: 'narrowSymbol' displays incorrectly
Updated•1 year ago
|
Component: Untriaged → JavaScript: Internationalization API
Product: Firefox → Core
Comment 1•1 year ago
|
||
Fixed by the update to ICU 76 (bug 1927706), which includes updates to a more recent CLDR.
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1927706
Resolution: --- → DUPLICATE
Updated•1 year ago
|
status-firefox134:
--- → fixed
Depends on: 1927706
No longer duplicate of bug: 1927706
Resolution: DUPLICATE → FIXED
Target Milestone: --- → 134 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•