From 3468dd755f2a43c7a5be504e8bd8cbc9a6c2606c Mon Sep 17 00:00:00 2001 From: asereze Date: Fri, 25 Oct 2024 19:14:08 +0200 Subject: [PATCH] Added missing available languages Added languages: Bulgarian Catalan Chinese (Traditional) Danish Dutch Estonian Hungarian Interlingua Kabyle Korean Lithuanian Malay Persian Punjabi Punjabi (Pakistan) Swedish Tamil Tatar --- .../com/bnyro/translate/util/LocaleHelper.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt index 5ee5081a3..aadfa854b 100644 --- a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt +++ b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt @@ -55,21 +55,36 @@ object LocaleHelper { Language("ar", "Arabic"), Language("az", "Azerbaijani"), Language("be", "Belarusian"), + Language("bg", "Bulgarian") + Language("bn", "Bengali"), + Language("ca", "Catalan"), Language("cs", "Czech"), + Language("da", "Danish"), Language("de", "German"), Language("es", "Spanish"), + Language("et", "Estonian"), + Language("fa", "Persian"), Language("fi", "Finnish"), Language("fil", "Filipino"), Language("fr-rFR", "French"), Language("he", "Hebrew"), Language("hi", "Hindi"), + Language("hu", "Hungarian"), + Language("ia", "Interlingua"), Language("id", "Indonesian"), Language("it", "Italian"), Language("ja", "Japanese"), + Language("kab", "Kabyle"), + Language("ko", "Korean"), + Language("lt", "Lithuanian"), Language("ml", "Malayalam"), + Language("ms", "Malay"), Language("nb-rNO", "Norwegian Bokmål"), + Language("nl", "Dutch"), Language("nn", "Norwegian Nynorsk"), Language("or", "Odia"), + Language("pa", "Punjabi"), + Language("pa-rPK", "Punjabi (Pakistan)"), Language("pl", "Polish"), Language("pt", "Portuguese"), Language("pt-rBR", "Portuguese (Brazil)"), @@ -78,10 +93,14 @@ object LocaleHelper { Language("sat", "Santali"), Language("sc", "Sardinian"), Language("sr", "Serbian"), + Language("sv", "Swedish"), + Language("ta", "Tamil"), Language("tr", "Turkish"), + Language("tt", "Tatar"), Language("uk", "Ukrainian"), Language("vi", "Vietnamese"), Language("zh-rCN", "Chinese (Simplified)") + Language("zh-rTW", "Chinese (Traditional)") ).sortedBy { it.name }.toMutableList() .apply { add(0, Language("", context.getString(R.string.system)))