i18n, autogenerate: support different set of documents per locale #2735
siddie
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.30.3
What is your idea?
It would be great if Starlight in autogeneration mode supported different set of documents per locale.
Here is the file structure, that contains different set of articles for different languages:
*content
*--docs
*----en
*------start-page.mdx
*------wiki
*--------slug-article-en-1.md
*--------slug-article-en-2.md
*----de
*------start-page.mdx
*------wiki
*--------slug-article-de-1.md
*----fr
*------start-page.mdx
*------wiki
*--------slug-article-fr-1.md
*--------slug-article-fr-2.md
What I see now:
`
en/wiki/slug-article-en-1.
en/wiki/slug-article-en-2
de/wiki/slug-article-de-1
de/wiki/slug-article-en-1
de/wiki/slug-article-en-2
fr/wiki/slug-article-fr-1
fr/wiki/slug-article-fr-2
fr/wiki/slug-article-en-1
fr/wiki/slug-article-en-2
`
Those pages are visible on the Sidebar, in the build, in the sitemap.xml.
Ideally, the default locale pages should not be duplicated into the other locales.
It woul be nice if in this case I was redirected to some default page of my wiki, say, start-page.mdx
Does it make sense?
PS: I am currently achieving the (1) via quite a hacky approach. Have not yet solved the (2).
Why is this feature necessary?
It is quite common for the knowledge base sites to provide different content for different languages, in other words, extending from internationalization to localization.
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions