Skip to content

Conversation

@kazupon
Copy link
Member

@kazupon kazupon commented Apr 20, 2024

breaking change

Named interpolation using modulo % is no longer supported in v10.
https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format

This PR modulo syntax is drop it.

PR #1795 has already announced a drop in v10 with a warning.

migration plan

You can use eslint-plugin-vue-i18n.
eslint-plugin-vue-i18n has @intlify/vue-i18n/no-deprecated-modulo-syntax rule.
https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-modulo-syntax.html
You can fixed with using eslint --fix
You must have migrated with eslint before upgrading to vue-i18n v10

@kazupon kazupon added the Type: Breaking Includes backwards-incompatible fixes label Apr 20, 2024
@kazupon kazupon merged commit 5e882ce into master Apr 20, 2024
@kazupon kazupon deleted the breaking/drop-modulo-syntax branch April 20, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Breaking Includes backwards-incompatible fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants