feat: 添加国际化支持,更新相关配置和组件,优化余额格式化
This commit is contained in:
16
src/locales/index.ts
Normal file
16
src/locales/index.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { createI18n } from "vue-i18n";
|
||||
import enUS from "./en-US.json";
|
||||
import zhCN from "./zh-CN.json";
|
||||
|
||||
export type MessageSchema = typeof enUS;
|
||||
|
||||
const i18n = createI18n<MessageSchema, "en-US" | "zh-CN">({
|
||||
locale: "en-US",
|
||||
fallbackLocale: "en-US",
|
||||
messages: {
|
||||
"en-US": enUS,
|
||||
"zh-CN": zhCN,
|
||||
},
|
||||
});
|
||||
|
||||
export { i18n };
|
||||
Reference in New Issue
Block a user