i18n 从基础配置好用

This commit is contained in:
zhangshun
2026-05-27 17:12:02 +08:00
parent bab5ee5554
commit 52131ade2a
7 changed files with 137 additions and 18 deletions

14
src/lang/zh-CN.js Normal file
View File

@@ -0,0 +1,14 @@
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
export default {
...zhLocale,
common: {
confirm: '确定',
cancel: '取消',
home: '主页',
logout: '退出',
language: '语言',
chinese: '中文',
english: 'English'
}
}