apps-android-wikipedia
apps-android-wikipedia copied to clipboard
[Feature branch] Prompt existing generic ZH variant users to select regional variant
This PR moves the chineseLocaleToWikiLanguageCode function to AppLanguageLookUpTable and updates its logic to be:
- Region first: get region language code from
locale.countryif thescriptis eitherHantorHans, or the language tag starts withzh-. - Change the default fallback language code from
zh-hanttozh-tw. - Update test cases for the changes.
This PR should be fine to be merged into the main, or we can keep this in this ranch as a feature branch.
Bug: T360585