You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`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`).|
475
-
|`pnpm i18n:check:fix [locale]`| Same as check, but adds missing keys to other locales with English placeholders.|
476
-
|`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.|
477
-
|`pnpm i18n:report:fix`|Removes unused keys from `en.json` and all other locale files. |
478
-
|`pnpm i18n:schema`| Generates a JSON Schema from `en.json` at `i18n/schema.json`. Locale files reference this schema for IDE validation and autocompletion. |
|`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`). |
475
+
|`pnpm i18n:report:fix`| Removes unused keys from `en.json` and all other locale files. |
476
+
|`pnpm vp run i18n:check [locale]`| Same as check:fix, but only show missing and extra keys. |
477
+
|`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.|
478
+
|`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. |
We track the current progress of translations with [Lunaria](https://lunaria.dev/) on this site: https://i18n.npmx.dev/
512
512
If you see any outdated translations in your language, feel free to update the keys to match the English version.
513
513
514
-
Use `pnpm i18n:check` and `pnpm i18n:check:fix` to verify and fix your locale (see [i18n commands](#i18n-commands) above for details).
514
+
Use `pnpm i18n:check:fix` to fix your locale (see [i18n commands](#i18n-commands) above for details).
515
515
516
516
#### Country variants (advanced)
517
517
@@ -599,7 +599,7 @@ See how `es`, `es-ES`, and `es-419` are configured in [config/i18n.ts](./config/
599
599
- Use `common.*` for shared strings (loading, retry, close, etc.)
600
600
- Use component-specific prefixes: `package.card.*`, `settings.*`, `nav.*`
601
601
- Do not use dashes (`-`) in translation keys; always use underscore (`_`): e.g., `privacy_policy` instead of `privacy-policy`
602
-
-**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.
602
+
-**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.
Copy file name to clipboardExpand all lines: i18n/locales/en.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1632,5 +1632,6 @@
1632
1632
"message": "Accessibility matters to us, and we would love you to follow us in this vision. When using mentioned media, ensure there is enough contrast against the background, and don't go smaller than 24px. If you need any other resources or additional information about the project, feel free to reach us at {link}.",
1633
1633
"discord_link_text": "chat.npmx.dev"
1634
1634
}
1635
-
}
1635
+
},
1636
+
"alt_logo_kawaii": "A cute, rounded, and colorful version of the npmx logo."
0 commit comments