Add translation support
This commit is contained in:
@ -2,10 +2,17 @@ import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
|
||||
import { dirname, resolve } from 'node:path'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
plugins: [
|
||||
vue(),
|
||||
VueI18nPlugin({
|
||||
include: resolve(dirname(fileURLToPath(import.meta.url)), './src/locales/**'),
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
@ -21,5 +28,6 @@ export default defineConfig({
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
envPrefix: 'SAFETWITCH_',
|
||||
})
|
||||
|
Reference in New Issue
Block a user