nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.71k stars 478 forks source link

pages are not localized when using `pages:extends` with prefix strategy #3086

Open huang-julien opened 3 weeks ago

huang-julien commented 3 weeks ago

Environment


Reproduction

https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-ktvmyt?file=nuxt.config.ts,node_m%2Fmod.ts,node_m%2Fpages%2Ftest.vue,app.vue

Describe the bug

Hey :wave:

THe bug is that pages added through pages:extend hook in modules are not correctly localized by nuxt i18n with the prefix strategy. We only get the page localized for one lang + the name insn't localized either.

You can see theses info in the devtools

Additional context

No response

Logs

No response