Translate Missing
translate_missingIdentify keys missing in target locales and translate them. Fills translation gaps to keep your i18n files up to date without loading entire files.
Instructions
Find keys missing in target locales and translate them. Two modes: in provider mode (server env-configured with I18N_PROVIDER, I18N_MODEL, and an API key) the server calls the LLM provider directly and writes the results; in agent mode (no provider configured) it returns per-locale fallbackContexts — translate those inline and persist via write_translations. Check the discover output for the active mode. Uses project config (glossary, translation prompt, locale notes, examples) if available. Translates all locales concurrently by default — pass all targetLocales at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Specific dot-path keys to translate (e.g., ["auth.login.title", "common.save"]). If omitted, translates all missing keys in the layer. | |
| layer | No | Layer name from discover to translate (e.g., "root", "app-admin"). Omit to translate every locale-backed layer in one call — the recommended default for layered projects, which returns a result per layer plus an aggregated summary. | |
| dryRun | No | When true, returns which keys would be translated without calling the LLM or writing files. Default: false. | |
| compact | No | When true, returns a compact summary (totalTranslated, totalFailed, byLocale) instead of full per-locale results. Default: false. | |
| batchSize | No | Max keys per provider request (provider mode only). Default: 50. Lower values reduce per-batch risk but increase round trips. | |
| projectDir | No | Absolute path to the Nuxt project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app". | |
| targetLocales | No | Locale codes to translate into (e.g., ["de", "fr", "sv"]). Defaults to all locales except the reference. | |
| referenceLocale | No | Locale code used as translation source (e.g., "en", "en-US"). Defaults to the project default locale. |