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
Copy file name to clipboardExpand all lines: packages/unplugin-vue-i18n/README.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,13 @@ This plugin will automatically select and bundle Vue I18n build according to the
237
237
238
238
About details, See the [here](https://vue-i18n.intlify.dev/guide/advanced/optimization.html#improve-performance-and-reduce-bundle-size-with-runtime-build-only)
239
239
240
+
### For `petite-vue-i18n`
241
+
242
+
This plugin will automatically select and bundle `petite-vue-i18n` build according to the following vite behavior:
243
+
244
+
- vite dev: `petite-vue-i18n.esm-bundler.js`
245
+
- vite build: `petite-vue-i18n.runtime.esm-bundler.js`
246
+
240
247
241
248
## 🔧 Options
242
249
@@ -428,9 +435,15 @@ About details, See the [here](https://vue-i18n.intlify.dev/guide/advanced/optimi
428
435
429
436
This option that to use i18n custom blocks in `vue-class-component`.
430
437
438
+
### `useVueI18nImportName` (Experimental)
439
+
440
+
-**Type:**`boolean`
441
+
-**Default:**`false`
442
+
443
+
Whether to use the import name of `petite-vue-i18n` with the same import name as vue-i18n (`import { xxx } from 'vue-i18n'`).
444
+
445
+
This option allows a smooth migration from `petite-vue-i18n` to `vue-i18n` and allows progressive enhacement.
0 commit comments