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
I've been attempting to create a correctly translated sitemap in Nuxt 3 using the @nuxt/sitemap module, but I'm facing some difficulties with dynamic routes. Below is the summary of my discussion with @harlan-zw:
Issue Summary
Base URL Configuration: Encountering issues while translating dynamically generated entries using i18n with differentDomains (missing home page URL).
Static and Dynamic Routes: While static routes are correctly inferred in the sitemap, dynamically generated routes are not.
Multi-Sitemap: Dynamically generated routes are not correctly inferred / hreflangs are not filled and remain zero.
Could you please investigate the support for translating dynamically generated i18n routes in the @nuxt/sitemap module?
Additional Information
For the time being, I'm using defineI18nRoute with partial success but still facing issues with dynamic routes. Any suggestions or potential fixes would be highly appreciated.
Thank you for your assistance and looking forward to a resolution!
The text was updated successfully, but these errors were encountered:
harlan-zw
changed the title
Bug/Feature Request: Support for Translating Dynamically Generated i18n Routes in @nuxt/sitemap
[Sitemap] Support dynamic i18n route keywords
Sep 5, 2024
Just a small update on this, I did start investigating and was confirmed in my suspicious that it was going to be quite painful. So will need to try again when I have a good time to sit down with it.
Describe the bug
Hi,
I've been attempting to create a correctly translated sitemap in Nuxt 3 using the
@nuxt/sitemap
module, but I'm facing some difficulties with dynamic routes. Below is the summary of my discussion with @harlan-zw:Issue Summary
differentDomains
(missing home page URL).Reproductions
Initial Setup:
Minimal Reproduction Example
Expected behavior: Three entries in each translated sitemap.
Missing Homepage / Incorrectly Inferred Dynamic Routes:
Minimal Reproduction Example
Multi-Sitemap Configuration:
Multi-Sitemap Example
Issue: hreflangs remain zero.
Using
defineI18nRoute
:Example with
defineI18nRoute
Issue: Dynamic routes still don't get translated properly.
Request
Could you please investigate the support for translating dynamically generated i18n routes in the @nuxt/sitemap module?
Additional Information
For the time being, I'm using
defineI18nRoute
with partial success but still facing issues with dynamic routes. Any suggestions or potential fixes would be highly appreciated.Thank you for your assistance and looking forward to a resolution!
Best regards,
Jonas
Reproduction
https://stackblitz.com/edit/nuxt-starter-nc3hjd?file=nuxt.config.ts
System / Nuxt Info
No response
The text was updated successfully, but these errors were encountered: