Skip to content

Commit c75933c

Browse files
committed
fix: re-add missing scripts
1 parent d5be07e commit c75933c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ pnpm npmx-connector # Start the real connector (requires npm login)
119119
pnpm mock-connector # Start the mock connector (no npm login needed)
120120

121121
# Code Quality
122+
pnpm vp lint # Run linter (oxlint + oxfmt)
122123
pnpm lint:fix # Auto-fix lint issues
123124
pnpm test:types # TypeScript type checking
124125

@@ -459,10 +460,13 @@ npmx.dev uses [@nuxtjs/i18n](https://i18n.nuxtjs.org/) for internationalization.
459460

460461
The following scripts help manage translation files. `en.json` is the reference locale.
461462

462-
| Command | Description |
463-
| ------------------------------ | -------------------------------------------------------------------------------- |
464-
| `pnpm i18n:check:fix [locale]` | Same as check, but adds missing keys to other locales with English placeholders. |
465-
| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. |
463+
| Command | Description |
464+
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
465+
| `pnpm i18n:check:fix [locale]` | Compares `en.json` with other locale files and adds missing keys with English placeholders. Optionally filter output by locale (e.g. `pnpm i18n:check:fix ja-JP`). |
466+
| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. |
467+
| `pnpm vp i18n:check [locale]` | Same as check:fix, but only show missing and extra keys. |
468+
| `pnpm vp 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. |
469+
| `pnpm vp i18n:schema` | Generates a JSON Schema from `en.json` at `i18n/schema.json`. Locale files reference this schema for IDE validation and autocompletion. |
466470

467471
### Adding a new locale
468472

0 commit comments

Comments
 (0)