You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the above settings, locale message resolving and locale fallbacking will be handled in the same way as in vue-i18n, note that the code size will increase slightly.
209
209
210
+
### Setting bundler plugin
211
+
212
+
If you are building your application with a build toolchain like vite, you must configure it.
213
+
Please set the [‘module’ option in `@intlify/unplugin-vue-i18n`](https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n#module) configuration as follows.
214
+
215
+
> [!NOTE]
216
+
> About `@intlify/unplugin-vue-i18n` setting, see the ['performance' section](./optimization.md) and [`@intlify/unplugin-vue-i18n` docs](https://github.com/intlify/bundle-tools/blob/main/packages/unplugin-vue-i18n/README.md)
217
+
218
+
> [!IMPORTANT]
219
+
> `@intlify/unplugin-vue-i18n` version must **5.1.0 and later**
220
+
221
+
```diff
222
+
// vite.config.ts
223
+
import { defineConfig } from 'vite'
224
+
import { resolve, dirname } from 'node:path'
225
+
import { fileURLToPath } from 'url'
226
+
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
0 commit comments