forked from recloudstream/cloudstream
fix zh-TW
This commit is contained in:
parent
6db688e0bf
commit
0073ad8c81
3 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ object CommonActivity {
|
|||
* when setting the app language.
|
||||
**/
|
||||
val appLanguageExceptions = hashMapOf(
|
||||
"zh-TW" to Locale.TRADITIONAL_CHINESE
|
||||
"zh-rTW" to Locale.TRADITIONAL_CHINESE
|
||||
)
|
||||
|
||||
fun setLocale(context: Context?, languageCode: String?) {
|
||||
|
|
|
@ -84,7 +84,7 @@ val appLanguages = arrayListOf(
|
|||
Triple("", "Turkish", "tr"),
|
||||
Triple("", "Viet Nam", "vi"),
|
||||
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 */
|
||||
).sortedBy { it.second } //ye, we go alphabetical, so ppl don't put their lang on top
|
||||
|
||||
|
|
Loading…
Reference in a new issue