 Andrew Beveridge ☄️andClaude Opus 4.6
|
04c7197445
|
feat(i18n): add translation cache, CI validation, and enforcement (#693)
## Summary
@coderabbitai ignore
- Add GCS translation cache (`translation_cache.py`) to `translate.py`
for instant repeated translations
- Add `--no-cache`, `--dry-run`, `--cache-bucket` CLI flags to
translation script
- Add `translation-check` CI job that validates all 33 locale files have
matching keys
- Add `.githooks/pre-commit` hook for auto-translation when `en.json`
changes
- Add i18n section to CLAUDE.md documenting 33-locale support and
enforcement rules
## Test plan
- [ ] `python frontend/scripts/translate.py --messages-dir
frontend/messages --target es --dry-run` shows cache stats
- [ ] `python frontend/scripts/validate-translations.py --messages-dir
frontend/messages` passes
- [ ] CI `translation-check` job runs on PR
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-06 01:22:39 -04:00 |
|