You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs can ship localized bodies via sibling `src/docs/<name>.<locale>.md`
variant files (flat siblings; base `<name>.md` is the default + fallback),
or inline `translations` for TS-first code packages.
- spec: DocSchema.translations + resolveDocLocale (exact → primary subtag →
base, per-field fallback, strips the map)
- cli/collect-docs: fold variants into the base doc; lint orphan/duplicate
variants + apply the v1 MDX/image bans to variant content
- rest: /meta/doc (list + single) collapses to the request's
Accept-Language/?locale and returns one body; doc detail bypasses cache
- setup/studio: built-in overview docs ship zh translations (inline)
- showcase: showcase_index.zh.md demonstrates the flat-file variant path
Console already sends the UI language as Accept-Language, so doc content
localizes on a language switch with no client change.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
message: `Doc filename "${entry.name}" must be snake_case (e.g. crm_lead_guide.md); the stem becomes the doc name.`,
148
+
message: `Doc filename "${entry.name}" must be snake_case (e.g. crm_lead_guide.md), optionally with a locale suffix (crm_lead_guide.zh.md); the stem becomes the doc name.`,
0 commit comments