Scaffold Locale
scaffold_localeCreates empty locale files for new languages, copying the default locale's key structure with blank values. Supports JSON and PHP formats, so missing locales can be added before translating.
Instructions
Create empty locale files for new languages. Copies the key structure from the default locale with all values set to empty strings. Supports both JSON (Nuxt) and PHP (Laravel) formats. Does NOT modify framework config — the agent must add the locale to the framework config before calling this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Scope scaffolding to a single layer (e.g., "root", "app-admin"). If omitted, scaffolds across all layers. Call discover to discover available layers. | |
| dryRun | No | When true, returns what files would be created without writing them. Default: false. | |
| locales | No | Locale codes to scaffold empty files for (e.g., ["sv", "ja", "pt-BR"]). If omitted, auto-detects locales defined in config that are missing locale files. | |
| projectDir | No | Absolute path to the project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app". |