Skip to content

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 status
  • pnpm locales:delete -- --lang <slug> — delete one locale file and unlink it from i18n config/index
  • pnpm locales:cleanup — remove stale locale files/imports/config rows not aligned together
  • pnpm locales:fill -- --all — fill EN-identical strings across all locales sequentially (see fill.md)

Safety prompts

  • locales:delete asks for confirmation before file + i18n unlink.
  • locales:cleanup prints a cleanup plan first, then asks for confirmation.
  • en.json is 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