mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-21 09:53:55 +00:00
* got rid of both companion object * minor changes * It Now show lang on extensions * fixed * quickfix * android locale tuning * toggle option to setting * some fixes added 2 fonts removed Scanlators for anime --------- Co-authored-by: rebelonion <87634197+rebelonion@users.noreply.github.com>
33 lines
906 B
Kotlin
33 lines
906 B
Kotlin
package ani.dantotsu.others
|
|
|
|
class LanguageMapper {
|
|
companion object {
|
|
|
|
fun mapLanguageCodeToName(code: String): String {
|
|
return when (code) {
|
|
"all" -> "Multi"
|
|
"ar" -> "Arabic"
|
|
"de" -> "German"
|
|
"en" -> "English"
|
|
"es" -> "Spanish"
|
|
"fr" -> "French"
|
|
"id" -> "Indonesian"
|
|
"it" -> "Italian"
|
|
"ja" -> "Japanese"
|
|
"ko" -> "Korean"
|
|
"pl" -> "Polish"
|
|
"pt-BR" -> "Portuguese (Brazil)"
|
|
"ru" -> "Russian"
|
|
"th" -> "Thai"
|
|
"tr" -> "Turkish"
|
|
"uk" -> "Ukrainian"
|
|
"vi" -> "Vietnamese"
|
|
"zh" -> "Chinese"
|
|
"zh-Hans" -> "Chinese (Simplified)"
|
|
else -> ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|