mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:38:02 +00:00
feat: 添加vue-i18n依赖和基础配置
- 安装vue-i18n@9.x作为项目国际化解决方案 - 在main.js中集成i18n插件到Vue应用 - 配置支持简体中文、繁体中文、英文三种语言
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user