Skip to content

fix: rename zh-CN/ to zh/ to conform to Mintlify i18n spec#837

Open
comfyui-wiki wants to merge 3 commits intomainfrom
fix/rename-zh-CN-to-zh
Open

fix: rename zh-CN/ to zh/ to conform to Mintlify i18n spec#837
comfyui-wiki wants to merge 3 commits intomainfrom
fix/rename-zh-CN-to-zh

Conversation

@comfyui-wiki
Copy link
Member

Summary

  • Rename zh-CN/ directory to zh/ to use ISO 639-1 two-letter code as required by Mintlify internationalization spec
  • docs.json already had "language": "zh" — this PR aligns the file paths to match
  • Update all internal link references from /zh-CN/ to /zh/ across all MDX files, snippets, and JS scripts
  • Add wildcard redirect in docs.json: /zh-CN/:slug*/zh/:slug* for backward compatibility
  • Update language-switcher-fix.js and giscus-comments.js URL patterns
  • Update GitHub Actions workflow (zh-cn-sync-check.yml) and validate-links.py to use zh/ paths
  • Update README.md and README.zh-CN.md references

Test plan

  • Verify Chinese docs load at /zh/ paths
  • Verify old /zh-CN/ URLs redirect to /zh/ equivalents
  • Check CI passes (zh translation sync check, validate-links, mint-checks)

🤖 Generated with Claude Code

Mintlify requires ISO 639-1 two-letter language codes (zh, not zh-CN).
- Rename zh-CN/ directory to zh/
- Update all zh-CN/ path references in docs.json, snippets, JS files, CI scripts
- Add redirect rule in docs.json: /zh-CN/:slug* → /zh/:slug*
- Update language-switcher-fix.js and giscus-comments.js URL patterns
- Update GitHub Actions workflow and validate-links.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedmint@​4.2.186 ⏵ 4.2.43489 +210094100 +390

View full report

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant