CLI Commands
get
Get translation values by key path or by key prefix, from one layer or from every layer that defines them. Use "*" as the locale to read from all locales.
Synopsis
the-i18n-cli get --locale <locale>
Flags
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--layer | string | no | — | Layer name from discover (e.g., "root", "app-admin"). Omit to read every layer and get the { byLayer } shape back. |
--locale | string | yes | — | Locale code, locale file name, or "" to read all locales. Examples: "en", "en-US", "en-US.json", "". |
--keys | string | no | — | Dot-separated key paths to read. Example: "common.actions.save", "auth.login.title". Either this or keyPrefix is required. Comma-separated. |
--keyPrefix | string | no | — | Namespace to read every leaf key under, dots included: "auth" reads auth.login.title and everything else below auth. Either this or keys is required; passing both reads the union. |
--limit | string | no | — | Maximum number of keys to return. Default: 100 for a tool call, unlimited at a terminal. When the cap applies the result carries truncated: true and nextOffset — call again with offset set to that value for the next page, or narrow the request instead. |
--offset | string | no | — | Number of keys to skip before returning any. Default: 0. Pass the nextOffset of a truncated result to continue where it stopped. |