feat(ui): antd i18n

This commit is contained in:
Fu Diwei
2024-12-09 16:09:35 +08:00
parent 3b50741f19
commit fdfe54b6da
12 changed files with 138 additions and 67 deletions

View File

@@ -3,12 +3,15 @@ import { Resource } from "i18next";
import zh from "./zh";
import en from "./en";
export const LOCALE_ZH_NAME = "zh" as const;
export const LOCALE_EN_NAME = "en" as const;
const resources: Resource = {
zh: {
[LOCALE_ZH_NAME]: {
name: "简体中文",
translation: zh,
},
en: {
[LOCALE_EN_NAME]: {
name: "English",
translation: en,
},