mirror of
https://github.com/certimate-go/certimate.git
synced 2026-07-20 21:01:41 +08:00
refactor: clean code
This commit is contained in:
parent
3d1f032d55
commit
6d6b79f7e2
@ -1,6 +1,6 @@
|
||||
import { LANG_EN, LANG_ZH } from "./resources";
|
||||
|
||||
export const localeNames = {
|
||||
ZH: LANG_ZH,
|
||||
EN: LANG_EN,
|
||||
ZH: LANG_ZH,
|
||||
};
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user