[GH-ISSUE #22] Chinese Traditional (Hong Kong) (zh-Hant-HK) doesn't show up #17

Closed
opened 2026-03-02 05:16:44 +03:00 by kerem · 5 comments
Owner

Originally created by @zhgchgli0718 on GitHub (Apr 14, 2021).
Original GitHub issue: https://github.com/heysem-useinsider/Stringz/issues/22

Hi, I have Chinese Simplified, Chinese Traditional (Taiwan), Chinese Traditional (Hong Kong) in my project,
but I only see Chinese Simplified and Chinese Traditional (Taiwan) in Stringz editor.
Chinese Traditional (Hong Kong) (zh-Hant-HK) doesn't show up
Don't know it's a problem or just my mistake?

Originally created by @zhgchgli0718 on GitHub (Apr 14, 2021). Original GitHub issue: https://github.com/heysem-useinsider/Stringz/issues/22 Hi, I have Chinese Simplified, Chinese Traditional (Taiwan), Chinese Traditional (Hong Kong) in my project, but I only see Chinese Simplified and Chinese Traditional (Taiwan) in Stringz editor. **Chinese Traditional (Hong Kong) (zh-Hant-HK) doesn't show up** Don't know it's a problem or just my mistake?
kerem closed this issue 2026-03-02 05:16:44 +03:00
Author
Owner

@heysem-useinsider commented on GitHub (May 6, 2021):

I'm not sure there is a (zh-Hant-HK) language.
I think Xcode only supports the following languages: (zh-hans), (zh-hant), (zh-hk).
Please tell me wheather (zh-Hant-HK) is a real supported language. I'll add it to Stringz if so.

<!-- gh-comment-id:833802442 --> @heysem-useinsider commented on GitHub (May 6, 2021): I'm not sure there is a (zh-Hant-HK) language. I think Xcode only supports the following languages: (zh-hans), (zh-hant), (zh-hk). Please tell me wheather (zh-Hant-HK) is a real supported language. I'll add it to Stringz if so.
Author
Owner

@zhgchgli0718 commented on GitHub (May 18, 2021):

Hi, it's RFC4646

language-script-region-variant-extension-privateuse

and XCode support that.

zh-Hant-hk means Zh-Hant in Hong Kong, but Hong Kong also use Hans sometimes, so another setting is Zh-Hans-hk.

Hans means Chinese Simplified. (usually use in China, sometimes in Hong Kong)

Hant means Chinese Traditional. (usually use in Taiwan and Hong Kong)

Thanks!

<!-- gh-comment-id:843266104 --> @zhgchgli0718 commented on GitHub (May 18, 2021): Hi, it's [RFC4646](http://www.ietf.org/rfc/rfc4646.txt) language-script-region-variant-extension-privateuse and XCode support that. zh-Hant-hk means Zh-Hant in Hong Kong, but Hong Kong also use Hans sometimes, so another setting is Zh-Hans-hk. Hans means Chinese Simplified. (usually use in China, sometimes in Hong Kong) Hant means Chinese Traditional. (usually use in Taiwan and Hong Kong) Thanks!
Author
Owner

@samuelbradshaw commented on GitHub (Sep 14, 2021):

I manage an app that has UI strings translated into 94 languages. Several of the languages aren't showing in Stringz. These are the languages our app supports – all are standard BCP 47 codes supported by iOS / iPadOS:

af — Afrikaans
am — Amharic
ar — Arabic
bg — Bulgarian
bi — Bislama
ceb — Cebuano
chk — Chuukese
cs — Czech
da — Danish
de — German
efi — Efik
el — Greek
en — English
es — Spanish
et — Estonian
fa — Persian (Farsi)
fat — Fante
fi — Finnish
fj — Fijian
fr — French
gil — Kiribati (Gilbertese)
gn — Guarani
hi — Hindi
hif — Hindi (Fiji)
hil — Hiligaynon
hmn — Hmong
hr — Croatian
ht — Haitian Creole
hu — Hungarian
hy — Armenian
id — Indonesian
ig — Igbo
ilo — Ilokano
is — Icelandic
it — Italian
ja — Japanese
ka — Georgian
kek — Kekchi
km — Cambodian (Khmer)
kn — Kannada
ko — Korean
kos — Kosraean
ln — Lingala
lo — Laotian
lt — Lithuanian
lua — Tshiluba
lv — Latvian
mg — Malagasy
mh — Marshallese
mk — Macedonian
mn — Mongolian
ms — Malay
mt — Maltese
my — Burmese (Myanmar)
ne — Nepali
nl — Dutch
no — Norwegian
nv — Navajo
pau — Palauan
pl — Polish
pon — Pohnpeian
pt — Portuguese
ro — Romanian
ru — Russian
rw — Kinyarwanda
si — Sinhala
sk — Slovak
sl — Slovenian
sm — Samoan
sn — Shona
sq — Albanian
sr — Serbian
st — Sotho (Southern)
sv — Swedish
sw — Swahili
ta — Tamil
te — Telugu
th — Thai
tl — Tagalog
tn — Tswana (Setswana)
to — Tongan
tpi — Tok Pisin (Neomelanesian)
tr — Turkish
tw — Twi
ty — Tahitian
uk — Ukrainian
ur — Urdu
vi — Vietnamese
xh — Xhosa
yap — Yapese
yo — Yoruba
zh-Hans — Chinese Simplified (spoken as Mandarin)
zh-Hant — Chinese Traditional (spoken as Mandarin & Cantonese)
zu — Zulu

<!-- gh-comment-id:919436018 --> @samuelbradshaw commented on GitHub (Sep 14, 2021): I manage an app that has UI strings translated into 94 languages. Several of the languages aren't showing in Stringz. These are the languages our app supports – all are standard [BCP 47 codes](https://tools.ietf.org/search/bcp47) supported by iOS / iPadOS: af — Afrikaans am — Amharic ar — Arabic bg — Bulgarian bi — Bislama ceb — Cebuano chk — Chuukese cs — Czech da — Danish de — German efi — Efik el — Greek en — English es — Spanish et — Estonian fa — Persian (Farsi) fat — Fante fi — Finnish fj — Fijian fr — French gil — Kiribati (Gilbertese) gn — Guarani hi — Hindi hif — Hindi (Fiji) hil — Hiligaynon hmn — Hmong hr — Croatian ht — Haitian Creole hu — Hungarian hy — Armenian id — Indonesian ig — Igbo ilo — Ilokano is — Icelandic it — Italian ja — Japanese ka — Georgian kek — Kekchi km — Cambodian (Khmer) kn — Kannada ko — Korean kos — Kosraean ln — Lingala lo — Laotian lt — Lithuanian lua — Tshiluba lv — Latvian mg — Malagasy mh — Marshallese mk — Macedonian mn — Mongolian ms — Malay mt — Maltese my — Burmese (Myanmar) ne — Nepali nl — Dutch no — Norwegian nv — Navajo pau — Palauan pl — Polish pon — Pohnpeian pt — Portuguese ro — Romanian ru — Russian rw — Kinyarwanda si — Sinhala sk — Slovak sl — Slovenian sm — Samoan sn — Shona sq — Albanian sr — Serbian st — Sotho (Southern) sv — Swedish sw — Swahili ta — Tamil te — Telugu th — Thai tl — Tagalog tn — Tswana (Setswana) to — Tongan tpi — Tok Pisin (Neomelanesian) tr — Turkish tw — Twi ty — Tahitian uk — Ukrainian ur — Urdu vi — Vietnamese xh — Xhosa yap — Yapese yo — Yoruba zh-Hans — Chinese Simplified (spoken as Mandarin) zh-Hant — Chinese Traditional (spoken as Mandarin & Cantonese) zu — Zulu
Author
Owner

@heysem-useinsider commented on GitHub (Sep 15, 2021):

If you have the time please consider adding the missing languages with their names and flags and I'll merge your pull request as soon as possible.
If you don't need them urgently I will add them as soon as i get some free time.
Thanks

<!-- gh-comment-id:919905989 --> @heysem-useinsider commented on GitHub (Sep 15, 2021): If you have the time please consider adding the missing languages with their names and flags and I'll merge your pull request as soon as possible. If you don't need them urgently I will add them as soon as i get some free time. Thanks
Author
Owner

@ghost commented on GitHub (Jul 5, 2022):

Only use a script designator in a locale ID when there is ambiguity. For example, because Traditional Chinese is the default language in Hong Kong, use zh_HK, where zh is the code for Traditional Chinese and HK is the code for the Hong Kong region. For Simplified Chinese used in Hong Kong, use zh-Hans_HK as the locale ID, where zh-Hans is the code for the Simplified Chinese script.

ref: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html#//apple_ref/doc/uid/10000171i-CH15

<!-- gh-comment-id:1174542921 --> @ghost commented on GitHub (Jul 5, 2022): Only use a script designator in a locale ID when there is ambiguity. For example, because Traditional Chinese is the default language in Hong Kong, use zh_HK, where zh is the code for Traditional Chinese and HK is the code for the Hong Kong region. For Simplified Chinese used in Hong Kong, use zh-Hans_HK as the locale ID, where zh-Hans is the code for the Simplified Chinese script. ref: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html#//apple_ref/doc/uid/10000171i-CH15
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Stringz#17
No description provided.