添加国际化支持:引入 vue-i18n,更新多个组件以支持语言切换和文本翻译

This commit is contained in:
jxxghp
2025-04-27 17:44:09 +08:00
parent 80ae853582
commit d0b3bc8137
27 changed files with 973 additions and 374 deletions

View File

@@ -9,6 +9,7 @@ import { createApp } from 'vue'
import vuetify from '@/plugins/vuetify'
import router from '@/router'
import pinia from '@/stores/index'
import i18n from '@/plugins/i18n'
// 3. 全局组件
import App from '@/App.vue'
@@ -117,5 +118,6 @@ initializeApp().then(() => {
cancellationText: '取消',
},
})
.use(i18n)
.mount('#app')
})