Translate Missing
translate_missingIdentify and translate missing localization keys across multiple target locales concurrently, using project configuration and LLM sampling for accurate translations.
Instructions
Find keys missing in target locales and translate them. Uses the host LLM via MCP sampling if available, otherwise returns context for the agent to translate inline. 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 |
|---|---|---|---|
| layer | Yes | Layer name from discover to translate (e.g., "root", "app-admin"). Call discover to discover available layers. | |
| referenceLocale | No | Locale code used as translation source (e.g., "en", "en-US"). Defaults to the project default locale. | |
| targetLocales | No | Locale codes to translate into (e.g., ["de", "fr", "sv"]). Defaults to all locales except the reference. | |
| keys | No | Specific dot-path keys to translate (e.g., ["auth.login.title", "common.save"]). If omitted, translates all missing keys in the layer. | |
| batchSize | No | Max keys per LLM sampling request. Default: 50. Lower values reduce per-batch risk but increase round trips. | |
| 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. | |
| projectDir | No | Absolute path to the Nuxt project root. Defaults to server cwd. Example: "/home/user/my-app". |