Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

Remove All Chinese Documentation

Task Summary

删除所有中文文档,暂时语言只保留英文 (Remove all Chinese documents, temporarily keep only English)

Changes Completed

  • Removed 32 Chinese documentation files (all *.cn.mdx files)
  • Updated content/docs.site.json to remove "cn" from languages array
  • Updated default config in packages/site/lib/site-config.ts to remove "cn"
  • Fixed middleware to always redirect to English instead of Chinese
  • Verified build still works after changes

Files Removed (Commit 1)

All files with .cn.mdx extension:

  • content/docs/index.cn.mdx
  • content/docs/concepts/*.cn.mdx (8 files)
  • content/docs/creator-layer/index.cn.mdx
  • content/docs/execution-layer/index.cn.mdx
  • content/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.mdx
  • content/docs/specifications/index.cn.mdx

Configuration Updates

  • ✅ Updated content/docs.site.json: Changed "languages": ["en", "cn"] to "languages": ["en"]
  • ✅ Updated packages/site/lib/site-config.ts: Removed "cn" from default languages array
  • ✅ Updated packages/site/proxy.ts: Removed Chinese language detection, always redirect to /en/docs

Bug Fixes (Commit 2)

  • ✅ Fixed 404 error at /en/cn/docs by removing Chinese redirect logic in middleware
  • ✅ Homepage now correctly redirects to /en/docs for all users

Verification

  • ✅ Build completed successfully
  • ✅ All 32 Chinese files deleted
  • ✅ Only English documentation remains
  • ✅ No more double language path redirects
Original prompt

删除所有中文文档,暂时语言只保留英文。


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link

vercel bot commented Jan 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 22, 2026 11:53am

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove all Chinese documents and retain only English Remove Chinese localization, retain English only Jan 22, 2026
Copilot AI requested a review from hotlong January 22, 2026 10:36
@hotlong
Copy link
Contributor

hotlong commented Jan 22, 2026

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 22, 2026

@copilot 首页跳转有问题 404 https://docs-gn2jdmzxn-object-stack.vercel.app/en/cn/docs

Fixed in commit 036873b. The middleware was still redirecting Chinese users to /cn/docs. Updated both the middleware and default config to remove Chinese language support.

Homepage now correctly redirects to /en/docs

@github-actions
Copy link

🚀 Preview Deployment

This pull request will be automatically deployed to Vercel.

Preview Links

  • 📝 Documentation: Will be available once Vercel deployment completes
  • 🌍 Languages: English (/en/docs) and Chinese (/cn/docs)

Build Status

Check the CI workflow for build status and any errors.


Automated preview information for PR #55

@hotlong hotlong marked this pull request as ready for review January 22, 2026 12:10
Copilot AI review requested due to automatic review settings January 22, 2026 12:10
@hotlong hotlong merged commit 7fe8389 into main Jan 22, 2026
10 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.mdx files)
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation i18n

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants