Closed Bug 1697729 Opened 4 years ago Closed 4 years ago

Intl.DisplayNames translation of US for zh-TW and zh-HK is using Simplified characters instead of Traditional characters

Categories

(Core :: JavaScript: Internationalization API, enhancement, P3)

Firefox 86
enhancement

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: rob, Assigned: anba)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36

Steps to reproduce:

Type the following commands into your developer console:

const regionNamesInTraditionalChinese = new Intl.DisplayNames(['zh-Hant'], { type: 'region' });
console.log(regionNamesInTraditionalChinese.of('US'));

const regionNamesInZhTw = new Intl.DisplayNames(['zh-TW'], { type: 'region' });
console.log(regionNamesInZhTw.of('US'));

const regionNamesInZhHk = new Intl.DisplayNames(['zh-HK'], { type: 'region' });
console.log(regionNamesInZhHk.of('US'));

Actual results:

"美國"
"美国"
"美国"

Expected results:

"美國"
"美國"
"美國"

The Bugbug bot thinks this bug should belong to the 'Core::JavaScript: Internationalization API' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → JavaScript: Internationalization API
Product: Firefox → Core

I think this will be fixed when updating to ICU 68, therefore I'm setting bug 1686052 as a blocker for now.

Depends on: 1686052
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → N/A
Type: defect → enhancement
Priority: -- → P3

The -/* filter also removes the alias (%%ALIAS) and parent locale (%%Parent)
links, so we have to manually add them back when we're using -/*.

The ICU docs warn about this issue, but unfortunately that warning wasn't
present when we originally created our filter file, so this bug went unnoticed
for a long time.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c1d9d4ed6a2a Re-add alias and parent links in ICU filters. r=tcampbell
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: