From 79e482a945b822270aa2376be2004a3eec327328 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 4 Jan 2023 08:23:02 +0100 Subject: [PATCH] VueI18nPlugin fixes for Vitest --- src/boot/i18n.js | 1 + vitest.config.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boot/i18n.js b/src/boot/i18n.js index e1492d3bb..922cffeb1 100644 --- a/src/boot/i18n.js +++ b/src/boot/i18n.js @@ -8,6 +8,7 @@ const i18n = createI18n({ globalInjection: true, messages, missingWarn: false, + fallbackRoot: false, legacy: false, }); diff --git a/vitest.config.js b/vitest.config.js index 2f581b083..bde8537f8 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config'; import vue from '@vitejs/plugin-vue'; import { quasar, transformAssetUrls } from '@quasar/vite-plugin'; import jsconfigPaths from 'vite-jsconfig-paths'; -import VueI18n from '@intlify/unplugin-vue-i18n'; +import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'; import path from 'path'; // https://vitejs.dev/config/ @@ -23,7 +23,7 @@ export default defineConfig({ quasar({ sassVariables: 'src/quasar-variables.scss', }), - VueI18n({ + VueI18nPlugin({ include: path.resolve(__dirname, 'src/i18n/**'), }), jsconfigPaths(),