Browse Source

Sort default language codes for neatness

pull/726/head
William Oldham 2 years ago
parent
commit
4c3528892f
  1. 40
      src/utils/language.ts

40
src/utils/language.ts

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

Loading…
Cancel
Save