@intlify/unplugin-vue-i18n 5.0.0-beta.0 → 5.0.0-beta.2

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 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]
@@ -548,7 +548,7 @@ If do you will use this option, you need to enable `jitCompilation` option.
548
548
  This option that to use i18n custom blocks in `vue-class-component`.
549
549
 
550
550
  > [!IMPORTANT]
551
- 'useClassComponent' option is deprecated in v5.
551
+ `useClassComponent` option is deprecated in v5.
552
552
  This option will be supported with vue-i18n until v9 latest version.
553
553
 
554
554
  ### `onlyLocales`
@@ -567,6 +567,21 @@ If do you will use this option, you need to enable `jitCompilation` option.
567
567
 
568
568
  This option allows a smooth migration from `petite-vue-i18n` to `vue-i18n` and allows progressive enhacement.
569
569
 
570
+ > [!IMPORTANT]
571
+ `useVueI18nImportName` option is deprecated in v5.
572
+ This option will be supported with vue-i18n until v9 latest version.
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)
570
585
 
571
586
  ## 📜 Changelog
572
587