Skip to content

Message format failed in version 9.14.3 #2220

Closed
@aliasmaya

Description

@aliasmaya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions