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)
Tracking
()
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:
"美國"
"美國"
"美國"
Comment 1•3 years ago
|
||
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.
Assignee | ||
Comment 2•3 years ago
|
||
I think this will be fixed when updating to ICU 68, therefore I'm setting bug 1686052 as a blocker for now.
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
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.
Updated•3 years ago
|
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
Comment 5•3 years ago
|
||
bugherder |
Description
•