refactor: clean code

This commit is contained in:
Fu Diwei 2026-06-19 11:28:26 +08:00 committed by RHQYZ
parent 3d1f032d55
commit 6d6b79f7e2
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import { LANG_EN, LANG_ZH } from "./resources";
export const localeNames = {
ZH: LANG_ZH,
EN: LANG_EN,
ZH: LANG_ZH,
};

View File

@ -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;