MCP Tools

scaffold_locale

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.

Parameters

ParameterTypeRequiredDescription
localesstring[]noLocale 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.
layerstringnoScope scaffolding to a single layer (e.g., "root", "app-admin"). If omitted, scaffolds across all layers. Call discover to discover available layers.
dryRunbooleannoWhen true, returns what files would be created without writing them. Default: false.
projectDirstringnoAbsolute path to the project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app".

Paired CLI Command

The same operation runs from a terminal as the-i18n-cli scaffold, whose page documents its flags. Both paths call the same @the-i18n-kit/cli functions, so the result is the same.

Every tool is advertised by the-i18n-mcp and listed on the MCP tools overview.

Copyright © 2026