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:
parent
7c3e477939
commit
3da54f497a
|
|
@ -73,35 +73,56 @@ private fun countryCodeToFlagEmoji(countryCode: String): String? {
|
||||||
|
|
||||||
private val LANGUAGE_TO_COUNTRY by lazy {
|
private val LANGUAGE_TO_COUNTRY by lazy {
|
||||||
mapOf(
|
mapOf(
|
||||||
"en" to "US",
|
"af" to "ZA",
|
||||||
"de" to "DE",
|
"am" to "ET",
|
||||||
"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",
|
|
||||||
"ar" to "SA",
|
"ar" to "SA",
|
||||||
"nl" to "NL",
|
"bg" to "BG",
|
||||||
"sv" to "SE",
|
"bn" to "BD",
|
||||||
"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",
|
|
||||||
"cs" to "CZ",
|
"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",
|
"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",
|
"ro" to "RO",
|
||||||
|
"ru" to "RU",
|
||||||
"sk" to "SK",
|
"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",
|
"uk" to "UA",
|
||||||
|
"ur" to "PK",
|
||||||
|
"vi" to "VN",
|
||||||
|
"zh" to "CN",
|
||||||
|
"zu" to "ZA",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue