Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/src/main/java/com/lastwave/app/data/local/AppLanguage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ enum class AppLanguage(val tag: String) {
// Wave 2: audiophile/Hi-Res markets + MENA (Arabic is RTL).
GERMAN("de"),
FRENCH("fr"),
ITALIAN("it"),
JAPANESE("ja"),
KOREAN("ko"),
ARABIC("ar");
Expand Down Expand Up @@ -86,6 +87,7 @@ fun AppLanguage.nativeDisplayName(): String = when (this) {
AppLanguage.HINDI -> "हिन्दी"
AppLanguage.GERMAN -> "Deutsch"
AppLanguage.FRENCH -> "Français"
AppLanguage.ITALIAN -> "Italiano"
AppLanguage.JAPANESE -> "日本語"
AppLanguage.KOREAN -> "한국어"
AppLanguage.ARABIC -> "العربية"
Expand All @@ -104,6 +106,7 @@ fun AppLanguage.selectorSubtitle(): String = when (this) {
AppLanguage.HINDI -> "हिन्दी"
AppLanguage.GERMAN -> "Deutsch"
AppLanguage.FRENCH -> "Français"
AppLanguage.ITALIAN -> "Italiano"
AppLanguage.JAPANESE -> "日本語"
AppLanguage.KOREAN -> "한국어"
AppLanguage.ARABIC -> "العربية"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3386,6 +3386,7 @@ class InnerTubeMusicApi @Inject constructor(
AppLanguage.HINDI -> "IN"
AppLanguage.GERMAN -> if (sysCountry in setOf("AT", "CH", "DE")) sysCountry else "DE"
AppLanguage.FRENCH -> if (sysCountry in setOf("BE", "CA", "CH", "FR")) sysCountry else "FR"
AppLanguage.ITALIAN -> if (sysCountry == "CH") sysCountry else "IT"
AppLanguage.JAPANESE -> "JP"
AppLanguage.KOREAN -> "KR"
AppLanguage.ARABIC -> if (sysCountry in ARABIC_COUNTRIES) sysCountry else "SA"
Expand Down
Loading