Closed
Description
Reporting a bug?
Recently I'm upgrading my vue project for vue-i18n, from version 9.2.2 to 9.14.3, and my project's using message formatting, so I changed the rails i18n format, from "Current Date: %{date}" to "Current Date: {date}", but as per my testing, the named interpolation was failed and it direct rendering out as "Current Date: {date}" for the following codes in test.vue:
<div>{{ $t('messages.currentDate', {date: '2025-07-01'}) }}</div>
But if I upgrade to the latest version 11.1.7, it works fine.
Also, I've try version 9.14.1 & 9.14.4, but still failed.
Any clue?
Expected behavior
Support named interpolation
Reproduction
Format message like "Current Date: {date}" in the following code
<div>{{ $t('messages.currentDate', {date: '2025-07-01'}) }}</div>
System Info
Windows10, Vue3, node.js v12.6.0
Screenshot
No response
Additional context
No response
Validations
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussions