We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
generateStaticLocalizedUrls()
SSG needs to know the localized URLs in advance. Sitemap generation also needs to know what localized URLs exist.
A new generateStaticPaths() which goes through the URL patterns and returns the list of localizedUrls.
generateStaticPaths()
The developer provides a list of all static URLs/paths, the function will match the paths and return a list of all localized URLs.
const localizedUrls = generateStaticLocalizedUrls([ "/example", "/page/blog", "/123/hello" ]) console.log(localizedUrls) >> /de/example >> /fr/example >> ...
A sitemap generator can take the URLs and generate the sitemap. Likewise can an SSG generator statically pre-render all sites.
The text was updated successfully, but these errors were encountered:
This will also be useful to generate <link rel="alternate" hreflang="XXX" url="XXX" /> tags
<link rel="alternate" hreflang="XXX" url="XXX" />
Sorry, something went wrong.
No branches or pull requests
Context
SSG needs to know the localized URLs in advance. Sitemap generation also needs to know what localized URLs exist.
Proposal
A new
generateStaticPaths()
which goes through the URL patterns and returns the list of localizedUrls.The developer provides a list of all static URLs/paths, the function will match the paths and return a list of all localized URLs.
A sitemap generator can take the URLs and generate the sitemap. Likewise can an SSG generator statically pre-render all sites.
The text was updated successfully, but these errors were encountered: