From ca0e352e5c14bf69b76105f569743e2150765188 Mon Sep 17 00:00:00 2001 From: Tomas Barrera Date: Sat, 15 Apr 2023 02:04:47 -0600 Subject: [PATCH] fix: default plugin locale path (#261) --- packages/unplugin-vue-i18n/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/unplugin-vue-i18n/README.md b/packages/unplugin-vue-i18n/README.md index 98974ff..fd42209 100644 --- a/packages/unplugin-vue-i18n/README.md +++ b/packages/unplugin-vue-i18n/README.md @@ -213,7 +213,7 @@ const app = createApp() app.use(i18n).mount('#app') ``` -Change your vite.config.ts file accordingly to import all the files from locales folder on the root. Change `'./locales/**'` to path of your locales. +Change your vite.config.ts file accordingly to import all the files from locales folder on the root. Change `'./src/locales/**'` to path of your locales. ```ts // vite.config.ts import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite' @@ -222,7 +222,7 @@ import path from 'path' export default defineConfig({ plugins: [ VueI18nPlugin({ - include: [path.resolve(__dirname, './locales/**')], + include: [path.resolve(__dirname, './src/locales/**')], }), ], })