CLI Commands
remove-orphans
Find and remove orphan translation keys not referenced in source code
Synopsis
the-i18n-cli remove-orphans
Flags
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--layer | string | no | — | Filter to a specific layer |
--locale | string | no | — | Locale to check (default: project default) |
--dryRun | boolean | no | true | Preview without removing (default: true) |
--outputFile | string | no | — | Write full output to this file path and return only a summary (useful for large outputs) |
--codequalityOutput | string | no | — | Also write the orphan findings as a GitLab Code Quality (CodeClimate) JSON report to this file path |
--failOnOrphans | boolean | no | false | Exit 2 when any orphan key is found (CI gate) |
Every command accepts the shared flags and sets one of the exit codes documented on the overview.