English becomes the default · Chinese moves to /zh
docsi18n
English is now the site’s primary language: the root paths (/, /docs/**, /dev/**, /changelog) serve English directly, and Chinese moves entirely to /zh/** (/zh, /zh/docs/**, /zh/dev/**, /zh/changelog); the header’s EN / 中文 switch preserves the current path (/docs/overview ↔ /zh/docs/overview).
- Mechanism: the
docscollection holds the English tree (Nimbusversions.current: "en"), anddocs-zhis mounted at/zhviaversions.others; the old/en/**routes and thedocs-encollection are removed. - Untranslated pages: spec / PRD / ADR in the English tree still show the Chinese source with
This page has not been translated yet.at the top; the reverse case (an English page without Chinese) shows本页暂未提供中文。in the/zhtree. Neither notice can be dismissed. - Generation:
scripts/sync-docs.mjsnow writes the Chinese repo sources into both trees (the English tree flags the fallback withuntranslated, the Chinese tree stays clean); the English architecture page goes to the root tree, the Chinese one to the/zhtree. - Metadata: the root
llms.txtdescribes the English tree and links/zh/llms.txt; the rootllms-full.txtis English; sitemap / canonical / markdown alternates / RSS are correct per tree; Pagefind still indexes both languages.