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
Wrong sitemap #21
Comments
I never used next-sitemap. I gave a quick look to the readme, and if I understand correctly you want to leverage the transform function to translate the path... |
You could try the following; create
|
This is how I got it working
|
I linked toward @JacobSoderblom's suggestion in the docs. |
If someone is is wondering how to add alternateRefs for each language, here's how I got it working
|
The package next-sitemap is not getting the translations
How to generate a sitemap with the translated paths ?
I would able to do it manually but translateUrl and translatePath ( methods ) don't seems to work well when the first parameter is a URL in another language that is not the default one,
ex : translateUrl('/home','fr-FR') == gets the path for French
But how to get the English path given a French one ? Or a third language given the french path ?
Thanks
The text was updated successfully, but these errors were encountered: