Skip to content

i18npruneLocale files that stay honest

Validate, sync, prune, and generate translations with a CI-friendly CLI and a stable SDK — schema-first, preserve-aware, and readable in human or JSON mode.

i18nprune

Install ​

CLI (terminal):

bash
npm install -g i18nprune
# or: pnpm add -g i18nprune

On demand (no global install):

bash
npx i18nprune --help
pnpm dlx i18nprune --help

SDK (embed in your app):

bash
npm install @i18nprune/core
# or: pnpm add @i18nprune/core

The i18nprune npm package ships the CLI. Prefer @i18nprune/core when you import APIs from Node or workers.

Quick start ​

bash
i18nprune init
i18nprune validate
i18nprune sync --dry-run
i18nprune missing --target all
i18nprune generate --resume --all

Start with Onboarding for the shortest path, then Commands for day-to-day ops.

Documentation ​

TopicWhat you will learn
OnboardingCLI / SDK / CI / hosted paths to first value
CommandsPer-command reference
ExamplesCI gates, jq recipes, generate --resume
ConfigdefineConfig, locales layout, policies
PoliciescopyPrefixes, uncertainPrefixes, parity
CLI overviewGlobal flags and argument preprocessing
JSON (--json)Machine-readable envelope for scripts and CI
IssuesStable issue codes and remediation
ArchitectureSystem layers and data flow
SDK operationsProgrammatic runXxx surfaces
Release notesCLI and Core version history

Design principles ​

Schema-first, host-thin. Core owns detection, cache policy, and locale IO contracts. The CLI is a thin host for prompts, progress, and --json. Preserve and uncertain-prefix rules are one config contract across sync, cleanup, and generate — not per-command workarounds.