Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 17, 2026

Implements complete Chinese translation for all 28 ObjectStack documentation files using Fumadocs' dot parser i18n convention.

Translation Infrastructure

Fixed naming convention:

  • Changed from separate directory (content/docs-cn/) to dot suffix (.cn.mdx)
  • Updated translation utility to use file.mdxfile.cn.mdx pattern
  • Refactored hardcoded language checks into configurable constants
// Before: separate directory
content/docs/architecture.mdx  content/docs-cn/architecture.mdx

// After: dot parser (matches i18n.ts config)
content/docs/architecture.mdx  content/docs/architecture.cn.mdx

Translated Files (28 total)

  • Concepts (6): architecture, core-values, enterprise-patterns, terminology, ai-codex, manifesto
  • ObjectQL (7): index, ast-structure, schema-definition, wire-protocol, transaction-model, analytics-protocol, advanced-types
  • ObjectUI (6): index, component-schema, view-protocol, layout-system, action-triggers, report-template
  • ObjectOS (7): index, permission-governance, workflow-engine, automation-rules, plugin-manifest, integration-etl, audit-compliance
  • Specifications (2): root index, specifications index

Translation Standards

  • Preserved all MDX frontmatter, code blocks, and markdown formatting
  • Technical terms remain in English (ObjectStack, ObjectQL, ObjectUI, ObjectOS, CRUD, AST, JSON, YAML, SQL, etc.)
  • Consistent terminology: "Local-First" → "本地优先", "Protocol-Driven" → "协议驱动"
  • Professional technical documentation tone

Build generates 59 static pages including Chinese routes at /cn/docs/*.

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 17, 2026

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

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 17, 2026 7:14pm

Request Review

Copilot AI changed the title [WIP] Translate English document to Chinese version Translate English documentation to Chinese (Simplified) Jan 17, 2026
Copilot AI requested a review from huangyiirene January 17, 2026 19:16
@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 #43

@github-actions github-actions bot added documentation Improvements or additions to documentation i18n labels Jan 17, 2026
@huangyiirene huangyiirene marked this pull request as ready for review January 17, 2026 23:52
@huangyiirene huangyiirene merged commit 9009d5b into main Jan 17, 2026
6 checks passed
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