Commit d409f698 authored by Krzysztof Kocot's avatar Krzysztof Kocot
Browse files

Add translation validation scripts for blog app

Add two validation scripts to ensure translation consistency:

1. check-blog-translations.js - validates cross-locale key sync
   - Compares all locales against English reference
   - Reports missing and extra keys per locale
   - Checks for missing translation files

2. check-blog-translation-usage.js - validates translation key usage
   - Scans source files for t('key') and <Trans i18nKey="key">
   - Reports keys used in code that don't exist in translations
   - Optional --unused flag to show potentially unused keys

Scripts are in global scripts/ folder and called via:
- pnpm --filter @hive/blog lint:translations
- pnpm --filter @hive/blog lint:translations:usage

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude Opus 4.5 <noreply@anthropic.com>
parent 3032d419
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment