Skip to content

Commit 15fff92

Browse files
committed
Rename zh-CN to cn for Chinese docs and i18n
Migrates all Chinese documentation files and related configuration from 'zh-CN' to 'cn' for consistency. Updates i18n config, CLI, workflows, and site logic to use the new 'cn' code. Removes unused site root layout and redirect components, and adds i18n middleware proxy for language routing.
1 parent 4cf50a0 commit 15fff92

44 files changed

Lines changed: 45 additions & 137 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ documentation:
77
i18n:
88
- changed-files:
99
- any-glob-to-any-file:
10-
- 'content/**/*.zh-CN.mdx'
10+
- 'content/**/*.cn.mdx'
1111
- 'content/**/*.en.mdx'
1212
- 'lib/i18n.ts'
1313

.github/workflows/ai-translate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
uses: peter-evans/create-pull-request@v6
5858
with:
5959
token: ${{ secrets.GITHUB_TOKEN }}
60-
commit-message: "docs: auto-translate updates to zh-CN"
61-
title: "🤖 Auto Translate: Sync zh-CN docs"
60+
commit-message: "docs: auto-translate updates to cn"
61+
title: "🤖 Auto Translate: Sync cn docs"
6262
body: |
6363
This PR automatically syncs the Chinese documentation with the latest English changes.
6464

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
2929
### Preview Links
3030
- 📝 **Documentation**: Will be available once Vercel deployment completes
31-
- 🌍 **Languages**: English (\`/en/docs\`) and Chinese (\`/zh-CN/docs\`)
31+
- 🌍 **Languages**: English (\`/en/docs\`) and Chinese (\`/cn/docs\`)
3232
3333
### Build Status
3434
Check the CI workflow for build status and any errors.

README.md

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)