Skip to content

Commit

Permalink
fix: i18n pluralization with ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Nov 27, 2023
1 parent b8ea092 commit 1b01cba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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: {
Expand Down

0 comments on commit 1b01cba

Please sign in to comment.