mirror of
https://github.com/certd/certd.git
synced 2026-06-25 20:37:33 +08:00
25 lines
474 B
TypeScript
25 lines
474 B
TypeScript
import en from "./locale/en";
|
|
import zh from "./locale/zh_CN";
|
|
import { SupportedLanguagesType } from "/@/vben/locales";
|
|
export const messages = {
|
|
"en-US": {
|
|
label: "English",
|
|
...en
|
|
},
|
|
"zh-CN": {
|
|
label: "简体中文",
|
|
...zh
|
|
}
|
|
};
|
|
|
|
// export default createI18n({
|
|
// legacy: false,
|
|
// locale: "zh-cn",
|
|
// fallbackLocale: "zh-cn",
|
|
// messages
|
|
// });
|
|
|
|
export async function loadMessages(lang: SupportedLanguagesType) {
|
|
return messages[lang];
|
|
}
|