From 54ad58694113d9e9cf6140ecd3842251a8ab7ab6 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Wed, 27 Dec 2023 17:14:10 +0100 Subject: [PATCH] [web] Remove useless i18n configuration --- web-src/src/i18n.js | 1 - web-src/vite.config.js | 15 ++------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/web-src/src/i18n.js b/web-src/src/i18n.js index 6c4b80db..9501dda5 100644 --- a/web-src/src/i18n.js +++ b/web-src/src/i18n.js @@ -10,7 +10,6 @@ export default createI18n({ availableLocales: ('de', 'en', 'fr', 'zh'), fallbackLocale: 'en', fallbackWarn: false, - globalInjection: true, legacy: false, locale: navigator.language, messages, diff --git a/web-src/vite.config.js b/web-src/vite.config.js index 10051ed1..f0774a2c 100644 --- a/web-src/vite.config.js +++ b/web-src/vite.config.js @@ -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: {