This directory contains utility scripts for managing i18n translations.
Extracts all [TODO: Translate] entries from en.json for manual translation.
Usage:
python scripts/extract_remaining_todos.pyOutput: translations-remaining.json - Contains all untranslated entries
Imports translated entries from translations-remaining.json back into en.json.
Usage:
- Fill in translations in
translations-remaining.json - Run:
python scripts/import_translations.py
Contains comprehensive translation dictionary (1200+ entries) for reference. Can be used as a base for future translations.
When upstream adds new Chinese text:
-
Extract new TODOs:
python scripts/extract_remaining_todos.py
-
Translate entries: Edit
translations-remaining.jsonand add English translations -
Import translations:
python scripts/import_translations.py
-
Verify: Check
en.jsonfor any remaining[TODO]markers
- Use full sentences/phrases - Not word-by-word translation
- Context-aware - Consider where the text appears in the UI
- Natural English - Translate meaning, not literal words
- Consistent terminology - Use same terms for same concepts
- Total entries: 3,568
- Translated: 3,568 (100%)
- Coverage: 100%