Skip to content

Commit

Permalink
docs: consistent plugin name and add Nuxt (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored Jul 6, 2022
1 parent 7b0f6ba commit 4636ede
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions packages/unplugin-vue-i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ npm i @intlify/unplugin-vue-i18n

```ts
// vite.config.ts
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'

export default defineConfig({
plugins: [
vueI18n({ /* options */ }),
VueI18nPlugin({ /* options */ }),
],
})
```
Expand All @@ -56,6 +56,32 @@ module.exports = {

<br></details>

<details>
<summary>Nuxt</summary><br>

```ts
// nuxt.config.ts
import { defineNuxtConfig } from 'nuxt'
import VueI18nPlugin from '@intlify/unplugin-vue-i18n'

export default defineNuxtConfig({
vite: {
plugins: [
VueI18nPlugin.vite({ /* options */ }),
],
},
// When using Webpack
// builder: '@nuxt/webpack-builder',
webpack: {
plugins: [
VueI18nPlugin.webpack({ /* options */ }),
]
}
})
```

<br></details>

## 🚀 Usage

### i18n resources pre-compilation
Expand Down

0 comments on commit 4636ede

Please sign in to comment.