[web] Remove useless i18n configuration

This commit is contained in:
Alain Nussbaumer 2023-12-27 17:14:10 +01:00
parent c5628adb55
commit 54ad586941
2 changed files with 2 additions and 14 deletions

View File

@ -10,7 +10,6 @@ export default createI18n({
availableLocales: ('de', 'en', 'fr', 'zh'),
fallbackLocale: 'en',
fallbackWarn: false,
globalInjection: true,
legacy: false,
locale: navigator.language,
messages,

View File

@ -1,7 +1,7 @@
import path from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
import i18n from '@intlify/unplugin-vue-i18n/vite'
/*
* In development mode, use the VITE_OWNTONE_URL environment variable to set
@ -15,21 +15,10 @@ export default defineConfig({
resolve: { alias: { '@': '/src' } },
plugins: [
vue(),
vueI18n({
i18n({
include: path.resolve(__dirname, './src/locales/**')
})
],
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableLegacy: false,
runtimeOnly: false,
compositionOnly: false,
fullInstall: true
}
},
build: {
outDir: '../htdocs',
rollupOptions: {