Self-updating translation system for OpenClaw maintains domain glossaries automatically

Core translation system
A Python script wraps the Kimi2.5 API to translate .srt subtitle files while preserving block indices, timestamps, and segmentation. The script loads project profiles from projects/<name>/ folders containing three key files:
glossary.json— locked term mappings for specific spellings of names, competition names, and technical jargonstyle.md— voice guidelines, formatting rules, and cultural notesmemory.jsonl— accumulated context from previous translations
During translation, the script enforces locked terms before delivery. A QA gate validates SRT structure for no overlaps, increasing timecodes, and no stray indices.
Self-updating glossary system
A cron job runs every 6 hours, scanning official source sites in all languages. It extracts new terminology candidates, compares them against existing glossary entries, and appends deltas to glossary_deltas.jsonl. This allows the glossary to grow organically as the domain evolves, capturing official names, emerging terminology, or shifting institutional language without manual review cycles.
The system also maintains a separate knowledge base file with context snapshots—recent news, official communications, and product updates—which feeds back into translation quality by providing current context to the model.
Usage and results
Usage command:
python3 scripts/translate_srt.py \
--input source.srt \
--output output.en.srt \
--to English \
--project clientnameLocked terms get normalized in a post-process pass, then structural QA runs before file delivery. The system runs headless: file in, translated file out, with glossary silently updating in the background.
Results include consistent terminology across 100+ subtitle files, no drift in name spellings or technical vocabulary, and fresh context without manual source monitoring.
📖 Read the full source: r/openclaw
👀 See Also

Cowork Context Management Kit Solves Claude's File Overload Problem
A developer built a context management kit for Cowork after Claude AI was reading all 462 files in their project folder, causing performance issues and contradictions. The solution includes global instructions, a manifest file system, and a Cowork skill to prioritize relevant documents.

Tessera: Open-Source GUI Workspace for Managing Multiple Claude Code Sessions
Tessera is an open-source GUI that lets you run multiple Claude Code sessions side by side with Git worktree isolation, Kanban task tracking, live diffs, and agent activity inspection.

Deploy Claude Design Artifacts to Live Websites with Teenyapp
Teenyapp provides a hosting service that Claude Design can use directly from chat via an agent token link, enabling autonomous deployment of artifacts with backend support.

Claude Code's Local Memory Integration with Shodh: Enhancing Context Retention Over Time
Explore Claude Code's integration with Shodh memory for long-term project context retention using a local memory server.