fix zh-TW

This commit is contained in:
Cloudburst 2022-12-25 19:56:59 +01:00 committed by GitHub
parent 6db688e0bf
commit 0073ad8c81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ object CommonActivity {
* when setting the app language. * when setting the app language.
**/ **/
val appLanguageExceptions = hashMapOf( val appLanguageExceptions = hashMapOf(
"zh-TW" to Locale.TRADITIONAL_CHINESE "zh-rTW" to Locale.TRADITIONAL_CHINESE
) )
fun setLocale(context: Context?, languageCode: String?) { fun setLocale(context: Context?, languageCode: String?) {

View file

@ -84,7 +84,7 @@ val appLanguages = arrayListOf(
Triple("", "Turkish", "tr"), Triple("", "Turkish", "tr"),
Triple("", "Viet Nam", "vi"), Triple("", "Viet Nam", "vi"),
Triple("", "Chinese Simplified", "zh"), Triple("", "Chinese Simplified", "zh"),
Triple("\uD83C\uDDF9\uD83C\uDDFC", "Chinese Traditional", "zh-TW"), Triple("\uD83C\uDDF9\uD83C\uDDFC", "Chinese Traditional", "zh-rTW"),
/* end language list */ /* end language list */
).sortedBy { it.second } //ye, we go alphabetical, so ppl don't put their lang on top ).sortedBy { it.second } //ye, we go alphabetical, so ppl don't put their lang on top