MCP Tools
get_translations
Get translation values for given key paths from a specific locale and layer. Use "*" as locale to read from all locales.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
layer | string | yes | Layer name from discover (e.g., "root", "app-admin"). Call discover to discover available layers. |
locale | string | yes | Locale code, locale file name, or "" to read all locales. Examples: "en", "en-US", "en-US.json", "". |
compact | boolean | no | When true and locale is "*", returns a compact summary grouped by key instead of per-locale detail. Default: false. |
keys | string[] | yes | Dot-separated key paths to read. Example: "common.actions.save", "auth.login.title". |
projectDir | string | no | Absolute path to the Nuxt 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 get, 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.