-
Notifications
You must be signed in to change notification settings - Fork 7
support multi-lang sitemaps #178
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
base: main
Are you sure you want to change the base?
Conversation
|
…i-language support
return sitemapDef | ||
&& typeof sitemapDef.languages === 'object' | ||
&& sitemapDef.languages !== null | ||
&& Object.keys(sitemapDef.languages).length > 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works fine if there's already a multi-lang sitemap set up already and you need to edit it and add a new language, but it doesn't let you create a new one from scratch and always shows the default sitemap-details-dialog-template
because it expects at least one language to exist. I think just sitemapDef?.languages
should work.
</div> | ||
</li> | ||
</template> | ||
<template id="sitemap-multilang-dialog-template"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required but might be worth adding a back button in each of these templates so the user doesn't have to exit out of the modal and hit "add new" again to start over?
Test URLs: