One-call prep: diff -> keys -> per-module cultures + exact dedupe
prepare_syncScans project diff, groups new translation keys by module, fetches tenant cultures, and exact-dedupes against existing keys to prepare a translation sync.
Instructions
The FIRST and usually ONLY prep call for a translation sync. Scans the project diff (working-tree + staged + untracked), groups the found keys BY THEIR OWN module (from each key's prefix), fetches the tenant cultures, and exact-dedupes each module's keys against that module + any modules in BLOCKS_DEDUP_MODULES (none by default) — all in code, no LLM work. Handles a diff spanning several modules in ONE call. Returns { cultures, modules: [{ module, newKeys, existingSkip }] }. Do NOT call find_keys / list_modules / list_cultures / search_keys separately — this replaces them. Then, for each module with non-empty newKeys, infer English from the key names, translate into cultures, and call sync_keys for THAT module (omit outputPath) — one sync_keys call per module produces one JSON file per module.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | Re-fetch tenant cultures from the API, bypassing the cache. | |
| diffBase | No | Git ref to diff against. Omit for uncommitted changes. | |
| framework | No | ||
| moduleName | No | Scope to a single Blocks module slug, e.g. "app-user-management". Omit to process every module present in the diff. | |
| extraModuleNames | No | Extra modules to exact-dedupe against. |