Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

The repository already supports multi-language documentation (English/Chinese) via Fumadocs i18n, but lacked documentation explaining how to build and maintain it.

Changes

  • New documentation pages (content/docs/i18n-guide.{en,zh-CN}.mdx):

    • Configuration setup: i18n config, UI translations, source loader, app layout
    • Content creation: file naming conventions ({filename}.{lang}.mdx), frontmatter structure, navigation via meta.{lang}.json
    • Adding new languages: complete workflow with code examples
    • Troubleshooting: common issues (404s, missing navigation, language switcher)
    • Repository structure reference
  • Updated navigation (meta.{en,zh-CN}.json): Added guide to sidebar

  • Enhanced README: Project overview, getting started, link to i18n guide

Example Structure

content/docs/
├── index.en.mdx          # English version
├── index.zh-CN.mdx       # Chinese version
├── meta.en.json          # English navigation
└── meta.zh-CN.json       # Chinese navigation

Preview

The guide is accessible at /en/docs/i18n-guide and /zh-CN/docs/i18n-guide:

Multi-language documentation guide

Original prompt

如何构建多语言的文档,


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Jan 15, 2026

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

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 15, 2026 10:19am

Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for multi-language documentation Add comprehensive multi-language documentation guide Jan 15, 2026
Copilot AI requested a review from huangyiirene January 15, 2026 10:22
@huangyiirene
Copy link
Collaborator

@copilot 我有一套主的英文文档,是我来维护的其他国家语言的文档,我希望AI自动翻译。我希望做搜索引擎优化每一套文档应该在各自的语言路径下。

@huangyiirene huangyiirene marked this pull request as ready for review January 15, 2026 10:50
@huangyiirene huangyiirene merged commit f02913e into main Jan 15, 2026
2 of 3 checks passed
Copilot stopped work on behalf of huangyiirene due to an error January 15, 2026 10:50
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.

2 participants