Skip to content

Commit

Permalink
fix: remove duplicated en and tweak lang sort (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs authored Sep 21, 2024
1 parent 2385d15 commit 2bd3d0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/renderer/src/@types/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const langs = [
export const currentSupportedLanguages = [
"en",
"ja",
"zh-CN",
"zh-TW",
"zh-HK",
"pt",
"fr",
"ar-DZ",
Expand All @@ -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")],
Expand Down

0 comments on commit 2bd3d0b

Please sign in to comment.