fix: vxe-table i18n

This commit is contained in:
xiaoxian521
2022-03-13 14:01:51 +08:00
parent 51d08e4b82
commit a7576f6971
2 changed files with 9 additions and 23 deletions

View File

@@ -3,9 +3,6 @@ import { App, WritableComputedRef } from "vue";
import { storageLocal } from "/@/utils/storage";
import { type I18n, createI18n } from "vue-i18n";
// vxe-table组件国际化
import zhVxeTable from "vxe-table/lib/locale/lang/zh-CN";
import enVxeTable from "vxe-table/lib/locale/lang/en-US";
// element-plus国际化
import enLocale from "element-plus/lib/locale/lang/en";
import zhLocale from "element-plus/lib/locale/lang/zh-cn";
@@ -24,12 +21,10 @@ function siphonI18n(prefix = "zh-CN") {
export const localesConfigs = {
zh: {
...siphonI18n("zh-CN"),
...zhVxeTable,
...zhLocale
},
en: {
...siphonI18n("en"),
...enVxeTable,
...enLocale
}
};