Locale Manage CLIs
Management commands for listing, deleting, and cleaning locale linkage safely.
Commands
From apps/web:
pnpm locales— show locale tooling + current language linkage statuspnpm locales:delete -- --lang <slug>— delete one locale file and unlink it from i18n config/indexpnpm locales:cleanup— remove stale locale files/imports/config rows not aligned togetherpnpm locales:fill -- --all— fill EN-identical strings across all locales sequentially (see fill.md)
Safety prompts
locales:deleteasks for confirmation before file + i18n unlink.locales:cleanupprints a cleanup plan first, then asks for confirmation.en.jsonis always protected by shared reference-locale guards and cannot be deleted by these tools.
Cleanup rules
- remove locale JSON files with no matching config/index linkage
- remove config rows with no matching locale JSON file
- remove index imports/resources with no matching locale JSON/config row