Remove Chinese localization, retain English only#55
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
|
@copilot 首页跳转有问题 404 https://docs-gn2jdmzxn-object-stack.vercel.app/en/cn/docs |
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Fixed in commit 036873b. The middleware was still redirecting Chinese users to |
🚀 Preview DeploymentThis pull request will be automatically deployed to Vercel. Preview Links
Build StatusCheck the CI workflow for build status and any errors. Automated preview information for PR #55 |
There was a problem hiding this comment.
Pull request overview
Purpose: This PR removes all Chinese localization from the documentation site, keeping only English language support.
Changes:
- Removed 32 Chinese documentation files (all
*.cn.mdxfiles) - Updated configuration to remove "cn" from supported languages
- Simplified homepage redirect to always go to English docs
Reviewed changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
packages/site/proxy.ts |
Removed Chinese language detection, simplified to always redirect to /en/docs |
packages/site/lib/site-config.ts |
Removed "cn" from default languages array |
packages/site/docs.site.json |
Removed "cn" from i18n languages configuration |
content/docs/**/*.cn.mdx (32 files) |
Deleted all Chinese documentation files |

Remove All Chinese Documentation
Task Summary
删除所有中文文档,暂时语言只保留英文 (Remove all Chinese documents, temporarily keep only English)
Changes Completed
*.cn.mdxfiles)content/docs.site.jsonto remove "cn" from languages arraypackages/site/lib/site-config.tsto remove "cn"Files Removed (Commit 1)
All files with
.cn.mdxextension:content/docs/index.cn.mdxcontent/docs/concepts/*.cn.mdx(8 files)content/docs/creator-layer/index.cn.mdxcontent/docs/execution-layer/index.cn.mdxcontent/docs/execution-layer/objectui/*.cn.mdx(6 files)content/docs/execution-layer/objectql/*.cn.mdx(7 files)content/docs/execution-layer/objectos/*.cn.mdx(6 files)content/docs/governance-layer/index.cn.mdxcontent/docs/specifications/index.cn.mdxConfiguration Updates
content/docs.site.json: Changed"languages": ["en", "cn"]to"languages": ["en"]packages/site/lib/site-config.ts: Removed "cn" from default languages arraypackages/site/proxy.ts: Removed Chinese language detection, always redirect to/en/docsBug Fixes (Commit 2)
/en/cn/docsby removing Chinese redirect logic in middleware/en/docsfor all usersVerification
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.