Skip to content

Commit

Permalink
chore: add 19 missing available languages to the language selector in…
Browse files Browse the repository at this point in the history
… the settings (#461)
  • Loading branch information
asereze authored Oct 29, 2024
1 parent c19f800 commit 0fcd505
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,32 +55,52 @@ 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)"),
Language("ro", "Romanian"),
Language("ru", "Russian"),
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-rCN", "Chinese (Simplified)"),
Language("zh-rTW", "Chinese (Traditional)")
).sortedBy { it.name }.toMutableList()
.apply {
add(0, Language("", context.getString(R.string.system)))
Expand Down

0 comments on commit 0fcd505

Please sign in to comment.