From 8f4c01e6856140f1904536b799dd9ff090964d31 Mon Sep 17 00:00:00 2001 From: Alfonsus Ardani Date: Tue, 31 Mar 2026 01:31:11 +0700 Subject: [PATCH 1/7] docs: update CONTRIBUTING.md by removing obsolete scripts --- CONTRIBUTING.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index be2816ca6c..9a1e822be6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -119,7 +119,6 @@ pnpm npmx-connector # Start the real connector (requires npm login) pnpm mock-connector # Start the mock connector (no npm login needed) # Code Quality -pnpm lint # Run linter (oxlint + oxfmt) pnpm lint:fix # Auto-fix lint issues pnpm test:types # TypeScript type checking @@ -462,11 +461,8 @@ The following scripts help manage translation files. `en.json` is the reference | Command | Description | | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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`). | | `pnpm i18n:check:fix [locale]` | Same as check, but adds missing keys to other locales with English placeholders. | -| `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. | | `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. | -| `pnpm i18n:schema` | Generates a JSON Schema from `en.json` at `i18n/schema.json`. Locale files reference this schema for IDE validation and autocompletion. | ### Adding a new locale @@ -502,7 +498,7 @@ Check [Pluralization rule callback](https://vue-i18n.intlify.dev/guide/essential We track the current progress of translations with [Lunaria](https://lunaria.dev/) on this site: https://i18n.npmx.dev/ If you see any outdated translations in your language, feel free to update the keys to match the English version. -Use `pnpm i18n:check` and `pnpm i18n:check:fix` to verify and fix your locale (see [i18n commands](#i18n-commands) above for details). +Use `pnpm i18n:check:fix` to verify and fix your locale (see [i18n commands](#i18n-commands) above for details). #### Country variants (advanced) @@ -590,7 +586,7 @@ See how `es`, `es-ES`, and `es-419` are configured in [config/i18n.ts](./config/ - Use `common.*` for shared strings (loading, retry, close, etc.) - Use component-specific prefixes: `package.card.*`, `settings.*`, `nav.*` - Do not use dashes (`-`) in translation keys; always use underscore (`_`): e.g., `privacy_policy` instead of `privacy-policy` -- **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. +- **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. **Bad:** From 48213d81cb957780c24a83085cdae1f2acd78d60 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2026 18:40:28 +0000 Subject: [PATCH 2/7] [autofix.ci] apply automated fixes --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9a1e822be6..6e90234fe2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -459,10 +459,10 @@ npmx.dev uses [@nuxtjs/i18n](https://i18n.nuxtjs.org/) for internationalization. The following scripts help manage translation files. `en.json` is the reference locale. -| Command | Description | -| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `pnpm i18n:check:fix [locale]` | Same as check, but adds missing keys to other locales with English placeholders. | -| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. | +| Command | Description | +| ------------------------------ | -------------------------------------------------------------------------------- | +| `pnpm i18n:check:fix [locale]` | Same as check, but adds missing keys to other locales with English placeholders. | +| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. | ### Adding a new locale From d5be07e1f3d8f21968853ae788bcdf4d4542716c Mon Sep 17 00:00:00 2001 From: Alfonsus Ardani Date: Tue, 31 Mar 2026 02:00:58 +0700 Subject: [PATCH 3/7] fix: improve docs Co-authored-by: Felix Schneider <99918022+trueberryless@users.noreply.github.com> --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6e90234fe2..a20084634d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -498,7 +498,7 @@ Check [Pluralization rule callback](https://vue-i18n.intlify.dev/guide/essential We track the current progress of translations with [Lunaria](https://lunaria.dev/) on this site: https://i18n.npmx.dev/ If you see any outdated translations in your language, feel free to update the keys to match the English version. -Use `pnpm i18n:check:fix` to verify and fix your locale (see [i18n commands](#i18n-commands) above for details). +Use `pnpm i18n:check:fix` to fix your locale (see [i18n commands](#i18n-commands) above for details). #### Country variants (advanced) From c75933c22e791925b0b1019b7700d477e2fa6f5c Mon Sep 17 00:00:00 2001 From: Alfonsus Ardani Date: Tue, 31 Mar 2026 02:09:39 +0700 Subject: [PATCH 4/7] fix: re-add missing scripts --- CONTRIBUTING.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a20084634d..5b0b39316b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -119,6 +119,7 @@ pnpm npmx-connector # Start the real connector (requires npm login) pnpm mock-connector # Start the mock connector (no npm login needed) # Code Quality +pnpm vp lint # Run linter (oxlint + oxfmt) pnpm lint:fix # Auto-fix lint issues pnpm test:types # TypeScript type checking @@ -459,10 +460,13 @@ npmx.dev uses [@nuxtjs/i18n](https://i18n.nuxtjs.org/) for internationalization. The following scripts help manage translation files. `en.json` is the reference locale. -| Command | Description | -| ------------------------------ | -------------------------------------------------------------------------------- | -| `pnpm i18n:check:fix [locale]` | Same as check, but adds missing keys to other locales with English placeholders. | -| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. | +| Command | Description | +| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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`). | +| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. | +| `pnpm vp i18n:check [locale]` | Same as check:fix, but only show missing and extra keys. | +| `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. | +| `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. | ### Adding a new locale From 50615c91a0c688b52cf3203cbcc34ffc7a9c6b5f Mon Sep 17 00:00:00 2001 From: Alfonsus Ardani Date: Tue, 31 Mar 2026 08:23:59 +0700 Subject: [PATCH 5/7] fix: use correct lint command --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5b0b39316b..7775108c07 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -119,7 +119,7 @@ pnpm npmx-connector # Start the real connector (requires npm login) pnpm mock-connector # Start the mock connector (no npm login needed) # Code Quality -pnpm vp lint # Run linter (oxlint + oxfmt) +pnpm vp run lint # Run linter (oxlint + oxfmt) pnpm lint:fix # Auto-fix lint issues pnpm test:types # TypeScript type checking From 14f74bdcc8b6d76a68b737f377616340cdbd0494 Mon Sep 17 00:00:00 2001 From: Alfonsus Ardani Date: Tue, 31 Mar 2026 16:38:09 +0700 Subject: [PATCH 6/7] fix: use correct vp command to run vp scripts --- CONTRIBUTING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7775108c07..af1a2eabde 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -464,9 +464,9 @@ The following scripts help manage translation files. `en.json` is the reference | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `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`). | | `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. | -| `pnpm vp i18n:check [locale]` | Same as check:fix, but only show missing and extra keys. | -| `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. | -| `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. | +| `pnpm vp run i18n:check [locale]` | Same as check:fix, but only show missing and extra keys. | +| `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. | +| `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. | ### Adding a new locale From 96d57c5e45540f02a32f3cd92b9ac8b0797149df Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 09:39:33 +0000 Subject: [PATCH 7/7] [autofix.ci] apply automated fixes --- CONTRIBUTING.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index af1a2eabde..1628fdee01 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -460,13 +460,13 @@ npmx.dev uses [@nuxtjs/i18n](https://i18n.nuxtjs.org/) for internationalization. The following scripts help manage translation files. `en.json` is the reference locale. -| Command | Description | -| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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`). | -| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. | -| `pnpm vp run i18n:check [locale]` | Same as check:fix, but only show missing and extra keys. | -| `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. | -| `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. | +| Command | Description | +| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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`). | +| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. | +| `pnpm vp run i18n:check [locale]` | Same as check:fix, but only show missing and extra keys. | +| `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. | +| `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. | ### Adding a new locale