Skip to content

Commit 2bd3d0b

Browse files
authored
fix: remove duplicated en and tweak lang sort (#547)
1 parent 2385d15 commit 2bd3d0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/renderer/src/@types/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
const langs = [
1+
export const currentSupportedLanguages = [
22
"en",
33
"ja",
44
"zh-CN",
55
"zh-TW",
6+
"zh-HK",
67
"pt",
78
"fr",
89
"ar-DZ",
@@ -11,13 +12,12 @@ const langs = [
1112
"ar-IQ",
1213
"ar-KW",
1314
"ar-TN",
14-
"zh-HK",
1515
"fi",
1616
"it",
1717
"ru",
1818
"es",
1919
]
20-
export const currentSupportedLanguages = ["en", ...langs.sort()]
20+
2121
export const dayjsLocaleImportMap = {
2222
en: ["en", () => import("dayjs/locale/en")],
2323
["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")],

0 commit comments

Comments
 (0)