nuxt-modules / i18n

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

switchLocalePath returning empty string #3051

Closed pmnzt closed 3 months ago

pmnzt commented 3 months ago

Environment


Reproduction

https://github.com/pmnzt/nuxt-i18n-issues

Describe the bug

As the title, the function is returning an empty string instead of a path

Additional context

No response

Logs

No response

BobbieGoede commented 3 months ago

Your project has no pages, so no routes for the module to localize, I have modified your reproduction here and added an index page to demonstrate.

pmnzt commented 3 months ago

Your project has no pages, so no routes for the module to localize, I have modified your reproduction here and added an index page to demonstrate.

ok sorry, did not know that, what about ? https://github.com/nuxt-modules/i18n/issues/3052