feat: add Chinese Traditional (zh-TW) locale and translations

This commit is contained in:
andrekir 2024-04-27 07:13:36 -03:00 committed by Andre K
parent b814c1d5d1
commit c8191a899b
6 changed files with 179 additions and 2 deletions

View file

@ -57,6 +57,8 @@ object LanguageUtils : Logging {
SYSTEM_DEFAULT -> context.getString(R.string.preferences_system_default)
"fr-HT" -> context.getString(R.string.fr_HT)
"pt-BR" -> context.getString(R.string.pt_BR)
"zh-CN" -> context.getString(R.string.zh_CN)
"zh-TW" -> context.getString(R.string.zh_TW)
else -> loc.getDisplayLanguage(loc)
.replaceFirstChar { if (it.isLowerCase()) it.titlecase(loc) else it.toString() }
}