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)

Firefox 132
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
Component: Untriaged → JavaScript: Internationalization API
Product: Firefox → Core

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
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.

Attachment

General

Creator:
Created:
Updated:
Size: