Get Translations
get_translationsRetrieve translation values for given key paths from a locale and layer, or use '*' to get all locales.
Instructions
Get translation values for given key paths from a specific locale and layer. Use "*" as locale to read from all locales.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Layer name from discover (e.g., "root", "app-admin"). Call discover to discover available layers. | |
| locale | Yes | Locale code, locale file name, or "*" to read all locales. Examples: "en", "en-US", "en-US.json", "*". | |
| compact | No | When true and locale is "*", returns a compact summary grouped by key instead of per-locale detail. Default: false. | |
| keys | Yes | Dot-separated key paths to read. Example: ["common.actions.save", "auth.login.title"]. | |
| projectDir | No | Absolute path to the Nuxt project root. Defaults to server cwd. Example: "/home/user/my-app". |