Files
openclaw/docs/.i18n

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-i18n still owns translation generation.
  • The source repo syncs English docs into the publish repo; zh-CN generation runs there on push and hourly.