Skip to content

Commit

Permalink
fix: default plugin locale path (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
akires47 authored Apr 15, 2023
1 parent e122e3a commit ca0e352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/unplugin-vue-i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -222,7 +222,7 @@ import path from 'path'
export default defineConfig({
plugins: [
VueI18nPlugin({
include: [path.resolve(__dirname, './locales/**')],
include: [path.resolve(__dirname, './src/locales/**')],
}),
],
})
Expand Down

0 comments on commit ca0e352

Please sign in to comment.