Skip to content

Commit f8aa999

Browse files
committed
docs: update breaking changes for v10
1 parent 9170ec0 commit f8aa999

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

docs/guide/migration/breaking10.md

+53
Original file line numberDiff line numberDiff line change
@@ -576,3 +576,56 @@ use `$t(key: Key, named: NamedValue, plural: number): TranslateResult;`
576576
<p>{{ $t('banana', { name: 'dio' }, 2) }}</p>
577577
</template>
578578
```
579+
580+
### Drop modulo `%` syntax
581+
582+
Named interpolation using modulo `%` is no longer supported in v10.
583+
584+
**Reason**: module syntax has already deprecated in v9 with a warning.
585+
586+
#### for migration
587+
588+
You can use `eslint-plugin-vue-i18n`.
589+
590+
`eslint-plugin-vue-i18n` has `@intlify/vue-i18n/no-deprecated-modulo-syntax` rule.
591+
https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-modulo-syntax.html
592+
593+
You can fixed with using `eslint --fix`
594+
595+
You must have migrated with eslint before upgrading to vue-i18n v10
596+
597+
### Drop `vue-i18n-bridge`
598+
599+
**Reason**: vue-i18n-bridge is a bridge library for migrating vue-i18n from Vue 2 to Vue 3, and Vue 2 is no longer past EOL.
600+
601+
### Drop `allowComposition` option
602+
603+
**Reason**: This option already deprecated in warning about being dropped in v10. docs says, https://vue-i18n.intlify.dev/guide/migration/vue3.html#about-supporting
604+
605+
This option was added to support the migration from the Legacy API to the composition API on v9.
606+
607+
### Drop `formatter` option on Legacy API
608+
609+
**Reason**: This option was deprecated in warning on v9.
610+
611+
### Drop `preserveDirectiveContent` option on Legacy API
612+
613+
**Reason**: This option was deprecated in warning on v9.
614+
615+
### Drop `preserve` modifier codes on `v-t` directive
616+
617+
**Reason**: This option was deprecated in warning on v9.
618+
619+
### Drop `getChoiceIndex` on Legacy API
620+
621+
**Reason**: This option was deprecated in warning on v9.
622+
623+
### Drop translation component `<i18n>` v8.x compatibility
624+
625+
**Reason**: This option was deprecated in warning on v9.
626+
627+
### Drop `te` behavior v8.x compatibility
628+
629+
**Reason**: This option was deprecated in warning on v9.
630+
631+
This option was introduced in this issue for supporting te behavior v8.x compatibility on v9

0 commit comments

Comments
 (0)