feat: 添加vue-i18n依赖和基础配置

- 安装vue-i18n@9.x作为项目国际化解决方案
- 在main.js中集成i18n插件到Vue应用
- 配置支持简体中文、繁体中文、英文三种语言
This commit is contained in:
Wangnov
2025-09-08 15:39:25 +08:00
parent 19ad0cd5f8
commit 504b9e3ea7
3 changed files with 73 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import 'element-plus/theme-chalk/dark/css-vars.css'
import App from './App.vue'
import router from './router'
import { useUserStore } from './stores/user'
import i18n from './i18n'
import './assets/styles/main.css'
import './assets/styles/global.css'
@@ -20,6 +21,9 @@ app.use(pinia)
// 使用路由
app.use(router)
// 使用Vue I18n
app.use(i18n)
// 使用Element Plus
app.use(ElementPlus, {
locale: zhCn