fill
Re-translates string leaves that still match the source (stale English-identical strings).
i18nprune fill --target ja
i18nprune fill --target ja,pt-br
i18nprune fill --target all
i18nprune fill --all
i18nprune fill --target ja --dry-run
i18nprune fill --target ja,pt-br --ask--target: one code, list, or all
- Single code — Same as before (e.g.
ja). - Comma-separated — Runs
fillonce per locale in order (e.g.ja,pt-br). all— Every non-source*.jsonunderlocalesDir(excluding*.meta.json).- Interactive (TTY): If
--target/--langis omitted, a menu offers All target locales (N) or each code (not the free-textpromptLanguageCodeOnlyflow).
Inputs and non-interactive rules
--target/--lang/--all— One of them is required when non-interactive (no TTY,CI,I18NPRUNE_NO_INIT, or--json). With a TTY and no flag, the CLI prompts via the menu above. Each resolved code must be a catalog code (same list asgenerate). The source locale basename is not allowed (same rule asgenerate). Unknown codes exit with a usage-class error (non-zero).--dry-run— Counts matching leaves and skips API calls and file writes.logger.infolines state that nothing was written and mirrorgenerate(would writepaths, optional meta line, subtitle).--ask— Interactive TTY: confirm the resolved target locale list before processing. Ignored without TTY; global--yesoverrides prompts.--no-meta— Do not write<lang>.meta.json. By defaultfillcreates or updates the sidecar with English/native from the bundled catalog and preserves existingdirection: "rtl"when already set (otherwiseltr).- Global
--json— Emits one primaryCliJsonEnvelopeon stdout (same contract as other JSON commands). Use--targetor--allwhen non-interactive; see JSON output andrunFillin@zamdevio/i18nprune/core.
Progress and translation
- Uses the same
createSessionProgresspipeline asgenerate(rich stderr progress whencanPrintProgressallows; stdin restored after the run). Policy: Translation progress. - Translation uses
translateLeaf(shared withgenerate). See Translator & progress.
See also
- Translation progress
- Command behaviors
- Policies —
policies.parity