From 1b01cba22fb333ff259534f9e39d15ea53c870cb Mon Sep 17 00:00:00 2001 From: Quentin Guillemin Date: Mon, 27 Nov 2023 14:01:55 +0100 Subject: [PATCH] fix: i18n pluralization with ts --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 50d727b0..690b5fed 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,6 @@ import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'; import vue from '@vitejs/plugin-vue'; +import path from 'node:path'; import { URL, fileURLToPath } from 'node:url'; import { defineConfig, loadEnv } from 'vite'; import vuetify from 'vite-plugin-vuetify'; @@ -21,7 +22,9 @@ export default ({ mode }: { mode: string }) => { }, }), vuetify({ autoImport: true, styles: 'expose' }), - VueI18nPlugin({}), + VueI18nPlugin({ + include: [path.resolve(__dirname, './src/main/webapp/src/locales/**/*.json')], + }), ], resolve: { alias: {