VueI18nPlugin fixes for Vitest
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2023-01-04 08:23:02 +01:00
parent 4b84f7db15
commit 79e482a945
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ const i18n = createI18n({
globalInjection: true,
messages,
missingWarn: false,
fallbackRoot: false,
legacy: false,
});

View File

@ -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(),