|
|
@ -14,37 +14,37 @@ const countryPriority: Record<string, string> = { |
|
|
|
|
|
|
|
|
|
|
|
// list of iso639_1 Alpha-2 codes used as default languages
|
|
|
|
// list of iso639_1 Alpha-2 codes used as default languages
|
|
|
|
const defaultLanguageCodes: string[] = [ |
|
|
|
const defaultLanguageCodes: string[] = [ |
|
|
|
"en-US", |
|
|
|
|
|
|
|
"cs-CZ", |
|
|
|
|
|
|
|
"de-DE", |
|
|
|
|
|
|
|
"fr-FR", |
|
|
|
|
|
|
|
"pt-BR", |
|
|
|
|
|
|
|
"it-IT", |
|
|
|
|
|
|
|
"nl-NL", |
|
|
|
|
|
|
|
"pl-PL", |
|
|
|
|
|
|
|
"tr-TR", |
|
|
|
|
|
|
|
"vi-VN", |
|
|
|
|
|
|
|
"zh-CN", |
|
|
|
|
|
|
|
"he-IL", |
|
|
|
|
|
|
|
"sv-SE", |
|
|
|
|
|
|
|
"lv-LV", |
|
|
|
|
|
|
|
"th-TH", |
|
|
|
|
|
|
|
"ne-NP", |
|
|
|
|
|
|
|
"ar-SA", |
|
|
|
"ar-SA", |
|
|
|
"es-ES", |
|
|
|
|
|
|
|
"et-EE", |
|
|
|
|
|
|
|
"bg-BG", |
|
|
|
"bg-BG", |
|
|
|
"bn-BD", |
|
|
|
"bn-BD", |
|
|
|
|
|
|
|
"cs-CZ", |
|
|
|
|
|
|
|
"de-DE", |
|
|
|
"el-GR", |
|
|
|
"el-GR", |
|
|
|
|
|
|
|
"en-US", |
|
|
|
|
|
|
|
"es-ES", |
|
|
|
|
|
|
|
"et-EE", |
|
|
|
"fa-IR", |
|
|
|
"fa-IR", |
|
|
|
|
|
|
|
"fr-FR", |
|
|
|
|
|
|
|
"gl-ES", |
|
|
|
"gu-IN", |
|
|
|
"gu-IN", |
|
|
|
|
|
|
|
"he-IL", |
|
|
|
"id-ID", |
|
|
|
"id-ID", |
|
|
|
|
|
|
|
"it-IT", |
|
|
|
"ja-JP", |
|
|
|
"ja-JP", |
|
|
|
"ko-KR", |
|
|
|
"ko-KR", |
|
|
|
|
|
|
|
"lv-LV", |
|
|
|
|
|
|
|
"ne-NP", |
|
|
|
|
|
|
|
"nl-NL", |
|
|
|
|
|
|
|
"pl-PL", |
|
|
|
|
|
|
|
"pt-BR", |
|
|
|
|
|
|
|
"ru-RU", |
|
|
|
"sl-SI", |
|
|
|
"sl-SI", |
|
|
|
|
|
|
|
"sv-SE", |
|
|
|
"ta-LK", |
|
|
|
"ta-LK", |
|
|
|
"ru-RU", |
|
|
|
"th-TH", |
|
|
|
"gl-ES", |
|
|
|
"tr-TR", |
|
|
|
|
|
|
|
"vi-VN", |
|
|
|
|
|
|
|
"zh-CN", |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
export interface LocaleInfo { |
|
|
|
export interface LocaleInfo { |
|
|
|