util: add more items into the mapping table of ISO 639-1 language code to ISO 3166-1 country code

This commit is contained in:
Han Yin 2025-07-16 13:38:30 -07:00
parent 7c3e477939
commit 3da54f497a
1 changed files with 45 additions and 24 deletions

View File

@ -73,35 +73,56 @@ private fun countryCodeToFlagEmoji(countryCode: String): String? {
private val LANGUAGE_TO_COUNTRY by lazy {
mapOf(
"en" to "US",
"de" to "DE",
"fr" to "FR",
"it" to "IT",
"es" to "ES",
"pt" to "BR",
"hi" to "IN",
"th" to "TH",
"ja" to "JP",
"ko" to "KR",
"zh" to "CN",
"ru" to "RU",
"af" to "ZA",
"am" to "ET",
"ar" to "SA",
"nl" to "NL",
"sv" to "SE",
"fi" to "FI",
"pl" to "PL",
"tr" to "TR",
"vi" to "VN",
"el" to "GR",
"he" to "IL",
"id" to "ID",
"ms" to "MY",
"no" to "NO",
"da" to "DK",
"bg" to "BG",
"bn" to "BD",
"cs" to "CZ",
"da" to "DK",
"de" to "DE",
"el" to "GR",
"en" to "US",
"es" to "ES",
"et" to "EE",
"fa" to "IR",
"fi" to "FI",
"fil" to "PH",
"fr" to "FR",
"he" to "IL",
"hi" to "IN",
"hr" to "HR",
"hu" to "HU",
"id" to "ID",
"it" to "IT",
"ja" to "JP",
"kn" to "IN",
"ko" to "KR",
"lt" to "LT",
"lv" to "LV",
"ml" to "IN",
"mr" to "IN",
"ms" to "MY",
"nl" to "NL",
"no" to "NO",
"pa" to "IN",
"pl" to "PL",
"pt" to "PT",
"ro" to "RO",
"ru" to "RU",
"sk" to "SK",
"sl" to "SI",
"sr" to "RS",
"sv" to "SE",
"sw" to "KE",
"ta" to "LK",
"te" to "IN",
"th" to "TH",
"tr" to "TR",
"uk" to "UA",
"ur" to "PK",
"vi" to "VN",
"zh" to "CN",
"zu" to "ZA",
)
}