mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add Chinese Traditional (zh-TW) locale and translations
This commit is contained in:
parent
b814c1d5d1
commit
c8191a899b
6 changed files with 179 additions and 2 deletions
|
|
@ -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() }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue