feat(create-rstack): add i18n documentation template - #254
Conversation
Deploying rstack-cli with
|
| Latest commit: |
742f3aa
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://dc289911.rstack-cli.pages.dev |
| Branch Preview URL: | https://chenjiahan-feat-create-rstac-7ac7.rstack-cli.pages.dev |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 742f3aa2e7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| title: 'My Site', | ||
| description: 'A multilingual Rspress documentation site.', | ||
| lang: 'en', | ||
| locales: [ |
There was a problem hiding this comment.
Move locale definitions into
themeConfig
When a generated doc-i18n project is served, Rspress reads the language definitions from themeConfig.locales, not the top-level locales property; the repository's working configuration demonstrates the required nesting in website/rstack.config.ts:60-93. As written, the new starter does not configure the language selector or localized site metadata, undermining its core multilingual behavior.
Useful? React with 👍 / 👎.
This PR adds a multilingual documentation starter for projects that need English and Chinese content from the start.
It adds a documentation language setup prompt, a
doc-i18ntemplate based on the existing simplified documentation starter, and focused generation coverage.