Skip to content

Commit 8f4c01e

Browse files
committed
docs: update CONTRIBUTING.md by removing obsolete scripts
1 parent 516808b commit 8f4c01e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ 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 lint # Run linter (oxlint + oxfmt)
123122
pnpm lint:fix # Auto-fix lint issues
124123
pnpm test:types # TypeScript type checking
125124

@@ -462,11 +461,8 @@ The following scripts help manage translation files. `en.json` is the reference
462461

463462
| Command | Description |
464463
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
465-
| `pnpm 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`). |
466464
| `pnpm i18n:check:fix [locale]` | Same as check, but adds missing keys to other locales with English placeholders. |
467-
| `pnpm 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. |
468465
| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. |
469-
| `pnpm i18n:schema` | Generates a JSON Schema from `en.json` at `i18n/schema.json`. Locale files reference this schema for IDE validation and autocompletion. |
470466

471467
### Adding a new locale
472468

@@ -502,7 +498,7 @@ Check [Pluralization rule callback](https://vue-i18n.intlify.dev/guide/essential
502498
We track the current progress of translations with [Lunaria](https://lunaria.dev/) on this site: https://i18n.npmx.dev/
503499
If you see any outdated translations in your language, feel free to update the keys to match the English version.
504500

505-
Use `pnpm i18n:check` and `pnpm i18n:check:fix` to verify and fix your locale (see [i18n commands](#i18n-commands) above for details).
501+
Use `pnpm i18n:check:fix` to verify and fix your locale (see [i18n commands](#i18n-commands) above for details).
506502

507503
#### Country variants (advanced)
508504

@@ -590,7 +586,7 @@ See how `es`, `es-ES`, and `es-419` are configured in [config/i18n.ts](./config/
590586
- Use `common.*` for shared strings (loading, retry, close, etc.)
591587
- Use component-specific prefixes: `package.card.*`, `settings.*`, `nav.*`
592588
- Do not use dashes (`-`) in translation keys; always use underscore (`_`): e.g., `privacy_policy` instead of `privacy-policy`
593-
- **Always use static string literals as translation keys.** Our i18n scripts (`pnpm i18n:report`) rely on static analysis to detect unused and missing keys. Dynamic keys cannot be analyzed and will be flagged as errors.
589+
- **Always use static string literals as translation keys.** Our i18n scripts (`pnpm i18n:report:fix`) rely on static analysis to detect unused and missing keys. Dynamic keys cannot be analyzed and will be flagged as errors.
594590

595591
**Bad:**
596592

0 commit comments

Comments
 (0)