Skip to content

Commit d68ab3b

Browse files
committed
Update CONTRIBUTING.md
1 parent 02632fb commit d68ab3b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,13 @@ npmx.dev uses [@nuxtjs/i18n](https://i18n.nuxtjs.org/) for internationalization.
460460

461461
The following scripts help manage translation files. `en.json` is the reference locale.
462462

463-
| Command | Description |
464-
| ------------------------------ | -------------------------------------------------------------- |
465-
| `pnpm i18n:check:fix [locale]` | Adds missing keys to other locales with English placeholders. |
466-
| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. |
463+
| Command | Description |
464+
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
465+
| `pnpm vp run i18n:check [locale]` | Compares `en.json` with other locale files. Shows missing and extra keys. Optionally filter output by locale (e.g. `pnpm i18n:check ja-JP`). |
466+
| `pnpm vp run i18n:check:fix [locale]` | Same as check, but adds missing keys to other locales with English placeholders. |
467+
| `pnpm vp run i18n:report` | Audits translation keys against code usage in `.vue` and `.ts` files. Reports missing keys (used in code but not in locale), unused keys (in locale but not in code), and dynamic keys. |
468+
| `pnpm vp run i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. |
469+
| `pnpm vp run i18n:schema` | Generates a JSON Schema from `en.json` at `i18n/schema.json`. Locale files reference this schema for IDE validation and autocompletion. |
467470

468471
### Adding a new locale
469472

0 commit comments

Comments
 (0)