Get Missing Translations
get_missing_translationsDetect translation keys that exist in the reference locale but are absent from target locales. Scan one layer or all layers to find missing translations in your i18n files.
Instructions
Find translation keys that exist in the reference locale but are missing in other locales. Scans a specific layer or all layers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Layer name to scan (e.g., "root", "app-admin"). If omitted, scans all layers. Call discover to discover available layers. | |
| outputFile | No | Absolute path to write full JSON output. Returns only a compact summary to the caller — use this for large outputs to avoid flooding the conversation context. Example: "/tmp/missing-translations.json" | |
| 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 check for missing keys (e.g., ["de", "fr", "es"]). Defaults to all locales except the reference. | |
| referenceLocale | No | Locale code used as the source of truth (e.g., "en", "en-US"). Defaults to the project default locale. |