Scaffold Locale
scaffold_localeCreates empty locale files for new languages by copying the key structure from the default locale with all values set to empty strings. Supports JSON and PHP formats.
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 |
|---|---|---|---|
| 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. | |
| 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. | |
| projectDir | No | Absolute path to the project root. Defaults to server cwd. Example: "/home/user/my-app". |