国际化支持

This commit is contained in:
liuhanqing
2025-05-23 10:33:30 +08:00
parent fd1c9ef5e8
commit 1f61c0c84a
13 changed files with 339 additions and 101 deletions

View File

@@ -19,6 +19,7 @@ import './permission' // permission control
import { getDicts } from "@/api/system/dict/data"
import { getConfigKey } from "@/api/system/config"
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi"
import i18n from './lang'
// 分页组件
import Pagination from "@/components/Pagination"
// 自定义表格工具组件
@@ -70,7 +71,8 @@ DictData.install()
*/
Vue.use(Element, {
size: Cookies.get('size') || 'medium' // set element-ui default size
i18n: (key, value) => i18n.t(key, value),
size: Cookies.get('size') || 'medium'
})
Vue.config.productionTip = false
@@ -79,5 +81,6 @@ new Vue({
el: '#app',
router,
store,
i18n,
render: h => h(App)
})