Open samwize opened 6 years ago
getLanguageBundle is returning nil. Strangely, locale.identifier is returning zh-TW, without the "Hant".
getLanguageBundle
locale.identifier
zh-TW
The 2nd part of getLanguageBundle therefore only get the language code as zh.
zh
Since now the bundle only has zh-Hant, no localized string is found.
zh-Hant
Localization does not work for Taiwan app users.
I believe another fallback using Bundle to load will work.
I have fixed in my fork here: https://github.com/samwize/SwiftMoment/commit/41e2b524bceb2281f36ef598a1dcab5e0b58e92e
What do you think?
Detailed Description
getLanguageBundle
is returning nil. Strangely,locale.identifier
is returningzh-TW
, without the "Hant".The 2nd part of
getLanguageBundle
therefore only get the language code aszh
.Since now the bundle only has
zh-Hant
, no localized string is found.Context
Localization does not work for Taiwan app users.
Possible Implementation
I believe another fallback using Bundle to load will work.
Your Environment