-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt-link is not changing to localized path #709
Comments
Then what's the point of this section: https://nuxt-community.github.io/nuxt-i18n/routing.html#in-component-options If we can create localized paths in-component then I suppose it's natural that we also want to access them via those links. So what is the solution for that? Give my routes name? |
Actually it works when using route name. You can check it out here: https://codesandbox.io/s/i18n-plugin-i18nlocales-ouwhn?file=/pages/index.vue Every route has a name. You can see them in generated file in |
Thanks! That worked - haven't seen |
One more thing (for others): when adding |
fix here: #1088 |
Version
nuxt-i18n: 6.11.1
nuxt: 2.12.2
Nuxt configuration
mode:
Nuxt-i18n configuration
Reproduction Link
No link.
Steps to reproduce
I have a navbar with nuxt-links like this:
(yes,
navbar.profile
translation works as expected)and a component
/profile
with this:What is Expected?
When:
pl
) I expectdomain.com/moj-profil
en
locale thendomain.com/en/profile
.What is actually happening?
pl
locale I get:domain.com/profile
and error page not found when clicked (but when I manually input/moj-profile
then I can access the page so that part in component seems to work). Should bedomain.com/moj-profil
en
I getdomain.com/en/profile
and clicked this worksThe text was updated successfully, but these errors were encountered: