VueI18nPlugin fixes for Vitest
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
4b84f7db15
commit
79e482a945
|
@ -8,6 +8,7 @@ const i18n = createI18n({
|
||||||
globalInjection: true,
|
globalInjection: true,
|
||||||
messages,
|
messages,
|
||||||
missingWarn: false,
|
missingWarn: false,
|
||||||
|
fallbackRoot: false,
|
||||||
legacy: false,
|
legacy: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config';
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
|
import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
|
||||||
import jsconfigPaths from 'vite-jsconfig-paths';
|
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';
|
import path from 'path';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
|
@ -23,7 +23,7 @@ export default defineConfig({
|
||||||
quasar({
|
quasar({
|
||||||
sassVariables: 'src/quasar-variables.scss',
|
sassVariables: 'src/quasar-variables.scss',
|
||||||
}),
|
}),
|
||||||
VueI18n({
|
VueI18nPlugin({
|
||||||
include: path.resolve(__dirname, 'src/i18n/**'),
|
include: path.resolve(__dirname, 'src/i18n/**'),
|
||||||
}),
|
}),
|
||||||
jsconfigPaths(),
|
jsconfigPaths(),
|
||||||
|
|
Loading…
Reference in New Issue