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

ParameterTypeRequiredDescription
layerstringyesLayer name from discover (e.g., "root", "app-admin"). Call discover to discover available layers.
localestringyesLocale code, locale file name, or "" to read all locales. Examples: "en", "en-US", "en-US.json", "".
compactbooleannoWhen true and locale is "*", returns a compact summary grouped by key instead of per-locale detail. Default: false.
keysstring[]yesDot-separated key paths to read. Example: "common.actions.save", "auth.login.title".
projectDirstringnoAbsolute 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.

Copyright © 2026