chore: pref

This commit is contained in:
xiaojunnuo
2023-06-29 16:42:08 +08:00
parent 96f9eab5cd
commit 3db4d04e4c
4 changed files with 6 additions and 15 deletions
@@ -1,20 +1,13 @@
import { createI18n } from "vue-i18n";
//
import enFsLocale from "@fast-crud/fast-crud/dist/locale/lang/en.js";
import zhFsLocale from "@fast-crud/fast-crud/dist/locale/lang/zh-cn.js";
import en from "./locale/en";
import zh from "./locale/zh_CN";
const messages = {
en: {
label: "English",
// 定义您自己的字典,但是请不要和 `fs` 重复,这样会导致 fast-crud 内部组件的翻译失效.
fs: enFsLocale.fs,
...en
},
"zh-cn": {
label: "简体中文",
// 定义您自己的字典,但是请不要和 `fs` 重复,这样会导致 fast-crud 内部组件的翻译失效.
fs: zhFsLocale.fs,
...zh
}
};
+1 -1
View File
@@ -3,7 +3,7 @@ import App from "./App.vue";
import router from "./router";
import Antd from "ant-design-vue";
import "./style/common.less";
import "./mock";
// import "./mock";
import i18n from "./i18n";
import store from "./store";
import components from "./components";