diff --git a/ui/src/i18n/locales.ts b/ui/src/i18n/locales.ts index 667f1ef0..2aa46b44 100644 --- a/ui/src/i18n/locales.ts +++ b/ui/src/i18n/locales.ts @@ -1,6 +1,6 @@ import { LANG_EN, LANG_ZH } from "./resources"; export const localeNames = { - ZH: LANG_ZH, EN: LANG_EN, + ZH: LANG_ZH, }; diff --git a/ui/src/i18n/resources/index.ts b/ui/src/i18n/resources/index.ts index c5a5eab7..8c4c5f5d 100644 --- a/ui/src/i18n/resources/index.ts +++ b/ui/src/i18n/resources/index.ts @@ -3,18 +3,18 @@ import { type Resource } from "i18next"; import en from "./en"; import zh from "./zh"; -export const LANG_ZH = "zh" as const; export const LANG_EN = "en" as const; +export const LANG_ZH = "zh" as const; const resources: Resource = { - [LANG_ZH]: { - name: "简体中文", - translation: zh, - }, [LANG_EN]: { name: "English", translation: en, }, + [LANG_ZH]: { + name: "简体中文", + translation: zh, + }, }; export default resources;