@intlify/unplugin-vue-i18n 5.0.0-beta.1 → 5.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/lib/index.cjs +560 -120
- package/lib/index.mjs +556 -117
- package/lib/types.d.cts +1 -0
- package/lib/types.d.mts +1 -0
- package/lib/types.d.ts +1 -0
- package/lib/vite.cjs +12 -7
- package/lib/vite.mjs +12 -7
- package/lib/webpack.cjs +12 -7
- package/lib/webpack.mjs +12 -7
- package/package.json +12 -17
package/README.md
CHANGED
|
@@ -374,7 +374,7 @@ Whether to tree-shake message compiler when we will be bundling.
|
|
|
374
374
|
|
|
375
375
|
If do you will use this option, you need to enable `jitCompilation` option.
|
|
376
376
|
|
|
377
|
-
> [NOTE]
|
|
377
|
+
> [!NOTE]
|
|
378
378
|
> After v5 or later, this option can be set with or without `jitCompilation`.
|
|
379
379
|
|
|
380
380
|
> [!NOTE]
|
|
@@ -571,6 +571,18 @@ If do you will use this option, you need to enable `jitCompilation` option.
|
|
|
571
571
|
`useVueI18nImportName` option is deprecated in v5.
|
|
572
572
|
This option will be supported with vue-i18n until v9 latest version.
|
|
573
573
|
|
|
574
|
+
### `optimizeTranslationDirective`
|
|
575
|
+
|
|
576
|
+
- **Type**: `boolean` | `string` | `string[]`
|
|
577
|
+
- **Default:** `false`
|
|
578
|
+
|
|
579
|
+
Whether to optimize `v-t` directive. If set to `true`, this plugin's transform will automatically translate to vue-i18n's translation function. If you need SSR, you must activate this option.
|
|
580
|
+
|
|
581
|
+
If you want to put it manually, you can specify the signature of the translation function as a string or a string array.
|
|
582
|
+
|
|
583
|
+
> [!WARNING]
|
|
584
|
+
About for manually signature, see the details [vue-i18n-extensions API docs](https://github.com/intlify/vue-i18n-extensions/blob/next/docs/%40intlify/vue-i18n-extensions-api.md#translationsignatures) and [usecase from vue-i18n-extensions PR](https://github.com/intlify/vue-i18n-extensions/pull/217/files#diff-3fb9543f91e011d4b0dc9beff44082fe1a99c9eab70c1afab23c3c34352b7c38R121-R200)
|
|
585
|
+
|
|
574
586
|
## 📜 Changelog
|
|
575
587
|
|
|
576
588
|
Details changes for each release are documented in the [CHANGELOG.md](https://github.com/intlify/bundle-tools/blob/main/packages/unplugin-vue-i18n/CHANGELOG.md)
|