Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese Traditional (Hong Kong) (zh-Hant-HK) doesn't show up #22

Closed
zhgchgli0718 opened this issue Apr 14, 2021 · 5 comments
Closed

Chinese Traditional (Hong Kong) (zh-Hant-HK) doesn't show up #22

zhgchgli0718 opened this issue Apr 14, 2021 · 5 comments

Comments

@zhgchgli0718
Copy link

zhgchgli0718 commented Apr 14, 2021

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?

@zhgchgli0718 zhgchgli0718 reopened this Apr 14, 2021
@zhgchgli0718 zhgchgli0718 changed the title Chinese Traditional (Hong Kong) doesn't show up Chinese Traditional (Hong Kong) (zh-Hant-HK) doesn't show up Apr 14, 2021
@mohakapt
Copy link
Owner

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

@zhgchgli0718
Copy link
Author

zhgchgli0718 commented 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!

@samuelbradshaw
Copy link
Contributor

samuelbradshaw commented 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

@mohakapt
Copy link
Owner

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

@ghost
Copy link

ghost commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants