sync_translations
Synchronizes translation keys from English source files to target language JSON files via MyMemory, removes deleted keys, and flags untranslated entries for manual agent translation.
Instructions
Synchronize translation keys from English source file to all target language files using MyMemory API (free, no API key required). Also removes keys that no longer exist in the source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Optional: Specific keys to sync. If not provided, syncs all changed keys. | |
| verbose | No | Show detailed progress for each language. Set to false for minimal output (saves tokens). | |
| source_file | No | Source file to sync from | en.json |
| force_update | No | Force re-translation even if the target already has a value for a key | |
| target_languages | No | Optional: Specific languages to sync (e.g., ["es", "fr"]). If not provided, syncs all languages. | |
| manual_translations | No | Translations supplied by the calling agent for keys MyMemory could not translate (from a prior sync_translations response's "needs_agent_translation" list). Shape: { "<language_code>": { "<key>": "<translated text>" } }. These are written as-is, no API call, no retry. |