Skip to content

Existing i18n block breaks messages passed to useI18n #2197

@Tinoooo

Description

@Tinoooo

Reporting a bug?

When having a i18n block in a SFC the messages passed to useI18n are ignored. The wrong locale seems to be used.

Expected behavior

The correct message should show up.

Reproduction

https://stackblitz.com/edit/vitejs-vite-jzkxsqny?file=src%2FApp.vue
with Nuxt: https://stackblitz.com/edit/nuxt-starter-9ubyojtn?file=app.vue

System Info

see stackblitz

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