fix: remove duplicated en and tweak lang sort (#547)

This commit is contained in:
Whitewater
2024-09-22 00:26:31 +08:00
committed by GitHub
parent 2385d1530c
commit 2bd3d0b4c8
+3 -3
View File
@@ -1,8 +1,9 @@
const langs = [
export const currentSupportedLanguages = [
"en",
"ja",
"zh-CN",
"zh-TW",
"zh-HK",
"pt",
"fr",
"ar-DZ",
@@ -11,13 +12,12 @@ const langs = [
"ar-IQ",
"ar-KW",
"ar-TN",
"zh-HK",
"fi",
"it",
"ru",
"es",
]
export const currentSupportedLanguages = ["en", ...langs.sort()]
export const dayjsLocaleImportMap = {
en: ["en", () => import("dayjs/locale/en")],
["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")],