Scaffold Locale
scaffold_localeCreate empty locale files for new languages by copying your default locale's key structure with blank values, in JSON or PHP format — for adding untranslated locales.
Instructions
Create empty locale files for new languages, copying the key structure of the default locale with every value set to an empty string. Supports both JSON (Nuxt) and PHP (Laravel) formats. Does NOT modify the framework configuration — add the locale there first, then call this.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scaffold_locale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Layer to scaffold in (e.g., "root", "app-admin"). If omitted, scaffolds across every layer. | |
| dryRun | No | Report the files that 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 the locales the config declares but has no files for. | |
| projectDir | No | Absolute path to the project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | True when nothing was written because a preview was asked for. | |
| created | Yes | Files that were created, or would be under dryRun. | |
| skipped | Yes | Files that already existed and were left alone. |