From 4c3528892fe445833092993823f1ab90a0055508 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Sat, 6 Jan 2024 12:36:59 +0000 Subject: [PATCH] Sort default language codes for neatness --- src/utils/language.ts | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/utils/language.ts b/src/utils/language.ts index 1b60dac3..2364e6a6 100644 --- a/src/utils/language.ts +++ b/src/utils/language.ts @@ -14,37 +14,37 @@ const countryPriority: Record = { // list of iso639_1 Alpha-2 codes used as default languages const defaultLanguageCodes: string[] = [ - "en-US", + "ar-SA", + "bg-BG", + "bn-BD", "cs-CZ", "de-DE", + "el-GR", + "en-US", + "es-ES", + "et-EE", + "fa-IR", "fr-FR", - "pt-BR", + "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", + "th-TH", "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", - "el-GR", - "fa-IR", - "gu-IN", - "id-ID", - "ja-JP", - "ko-KR", - "sl-SI", - "ta-LK", - "ru-RU", - "gl-ES", ]; export interface LocaleInfo {