What problem does it solve?
Keeping FastGPT's bilingual documentation in sync is tedious: every Chinese .mdx content file and meta.json navigation file needs a matching English counterpart, and inconsistent product terminology across translations confuses users. This Skill automates the translation workflow while enforcing a shared glossary as the single source of truth for product terms.
Core Features & Use Cases
- Automatic Change Detection: Uses git diff to find changed Chinese .mdx and meta.json files under document/ that need English versions.
- Glossary-Enforced Translation: Applies longest-match terminology from a shared FastGPT glossary (e.g., 知识库 → Dataset, 数据集 → Collection) and preserves MDX imports, image paths, URLs, JSX components, and code blocks.
- Navigation Synchronization: Keeps meta.en.json pages arrays aligned with meta.json, translating only titles, descriptions, and separator strings.
- Use Case: After adding a new Chinese docs page, run this Skill to generate the .en.mdx file, update meta.en.json, and verify no untranslated Chinese text or forbidden terminology remains.
Quick Start
Translate the Chinese documentation files I just modified in the document directory into English and sync the navigation files.