Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking: drop modulo syntax #1814

Merged
merged 1 commit into from
Apr 20, 2024
Merged

breaking: drop modulo syntax #1814

merged 1 commit into from
Apr 20, 2024

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
19 checks passed
@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.

1 participant