feat(i18n): set up vue-i18n with dynamic locale loading

This commit is contained in:
ghostubborn
2026-04-01 15:22:14 +08:00
parent 0c18e1aeca
commit 22bf50f877
6 changed files with 103 additions and 1 deletions

View File

@@ -1,9 +1,15 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@locales': path.resolve(__dirname, '../locales')
}
},
server: {
port: 3000,
open: true,