You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys, first of all congrats on this excellent git, I've been struggling with this issue and I was wondering if it is a bug or feature or whatever, so here is my scenario, I have a Nuxt 3 web multi language portfolio and when I try to create the sitemap for dynamics Url's I am getting unexpected results.
From docs there's an example on how to proceed:
// loc: '/about-us',
// will be transformed into /en/about-us and /fr/about-us
But, what is my url is also translated?
// (/fr/a-propos)
I created a repo with stackblitz so people can see the actual problem.
In my case I am expecting to get the right names from the actual page defined on defineI18nRoute() composable, where [service] is a dynamic param.
Obviously I might be setting something wrong or this isn't supported just yet, for what is worth on another page on the actual project I use a NuxtLink that works as expected, if you see the "to" parameters uses a string for the name.
<AppButton :to="localePath({ name: 'service-details-service', params: { service: id } })" size="sm">
{{ title }}
</AppButton>
I hope I made the issue clear enough to be checked and get some responses, thanks and keep up the good work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello guys, first of all congrats on this excellent git, I've been struggling with this issue and I was wondering if it is a bug or feature or whatever, so here is my scenario, I have a Nuxt 3 web multi language portfolio and when I try to create the sitemap for dynamics Url's I am getting unexpected results.
From docs there's an example on how to proceed:
// loc: '/about-us',
// will be transformed into /en/about-us and /fr/about-us
But, what is my url is also translated?
// (/fr/a-propos)
I created a repo with stackblitz so people can see the actual problem.
In my case I am expecting to get the right names from the actual page defined on defineI18nRoute() composable, where [service] is a dynamic param.
Instead I got always the same route, ex. http://localhost:3000/es/service-details-service
Obviously I might be setting something wrong or this isn't supported just yet, for what is worth on another page on the actual project I use a NuxtLink that works as expected, if you see the "to" parameters uses a string for the name.
I hope I made the issue clear enough to be checked and get some responses, thanks and keep up the good work.
Beta Was this translation helpful? Give feedback.
All reactions