Delete a Locale (pnpm locales:delete -- --lang <slug>)
This command lives in apps/web/scripts/locales/manage/delete.ts.
What it does
- Removes one locale JSON file from
apps/web/locales/ - Unlinks the locale from i18n config (
src/i18n/config.ts) - Updates the i18n index loader/resources imports (
src/i18n/index.tswhen applicable)
Usage
From apps/web:
bash
pnpm locales:delete -- --lang zh-cnIt is interactive and asks for confirmation before writing any files.