Skip to content

Commit

Permalink
Added missing available languages
Browse files Browse the repository at this point in the history
Added languages:

Bulgarian
Catalan
Chinese (Traditional)
Danish
Dutch
Estonian
Hungarian
Interlingua
Kabyle
Korean
Lithuanian
Malay
Persian
Punjabi
Punjabi (Pakistan)
Swedish
Tamil
Tatar
  • Loading branch information
asereze authored Oct 25, 2024
1 parent 2f892cf commit 3468dd7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)"),
Expand All @@ -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)))
Expand Down

0 comments on commit 3468dd7

Please sign in to comment.