mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 04:30:22 +00:00
OpenClaw docs i18n assets
This folder stores translation config for the source docs repo.
Generated zh-CN pages and the live zh-CN translation memory now live in the publish repo (openclaw/docs, local sibling checkout ~/Projects/openclaw-docs).
Files
glossary.<lang>.json— preferred term mappings (used in prompt guidance).<lang>.tm.jsonl— translation memory (cache) keyed by workflow + model + text hash. In this repo, zh-CN TM is no longer committed.
Glossary format
glossary.<lang>.json is an array of entries:
{
"source": "troubleshooting",
"target": "故障排除",
"ignore_case": true,
"whole_word": false
}
Fields:
source: English (or source) phrase to prefer.target: preferred translation output.
Notes
- Glossary entries are passed to the model as prompt guidance (no deterministic rewrites).
scripts/docs-i18nstill owns translation generation.- The source repo syncs English docs into the publish repo; zh-CN generation runs there on push and hourly.