Skip to content

i18n(zh-CN): add Simplified Chinese translations#47

Merged
montfort merged 1 commit intomainfrom
feat/i18n-zh-cn
Apr 5, 2026
Merged

i18n(zh-CN): add Simplified Chinese translations#47
montfort merged 1 commit intomainfrom
feat/i18n-zh-cn

Conversation

@montfort
Copy link
Copy Markdown
Contributor

@montfort montfort commented Apr 5, 2026

Summary

  • Add complete Simplified Chinese (zh-CN) localization as the third supported language (35 new files)
  • Generalize CLI template resolution to support any language, not just hardcoded es
  • Update language navigation links across all three languages (EN, ES, zh-CN) in 28 existing files

Details

Category New files Modified files
CLI/Config 0 5
Templates (12 doc types) 12 0
Governance + NIST guides 17 0
Docs + navigation links 6 23
Total 35 28

Key change: cli/src/commands/new.rsresolve_template_path now uses if lang != "en" instead of if lang == "es", making future language additions zero-code-change.

Test plan

  • cargo test — 22/22 tests pass
  • File parity verified: zh-CN directories match es directories exactly
  • YAML keys and enum values confirmed untranslated in all zh-CN files
  • Language navigation links verified across all three languages

🤖 Generated with Claude Code

Add complete Simplified Chinese (zh-CN) localization as the third
supported language alongside English and Spanish. This includes:

- 12 document templates (AILOG, ADR, AIDEC, DPIA, ETH, INC, MCARD, REQ, SBOM, SEC, TDE, TES)
- 12 governance documents (AGENT-RULES, AI-GOVERNANCE-POLICY, AI-KPIS, etc.)
- 5 NIST implementation guides (AI RMF + GenAI risks)
- 6 user-facing docs (README, CONTRIBUTING, CODE_OF_CONDUCT, adopter guides)
- Generalized CLI template resolution to support any language (not just es)
- Updated language navigation links across all three languages
- Updated CLAUDE.md version-bump checklist with zh-CN paths

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@montfort montfort merged commit b59df67 into main Apr 5, 2026
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