refactor(website): normalize keys for nested translation catalogs - #18012
benceruleanlu wants to merge 1 commit into
Conversation
Eleven website translation keys were both a message and the parent of other messages (learning.categories.all next to learning.categories.all.blurb), which a nested catalog cannot express. Give each such leaf its own segment (label, text or message) and update the consumers, and add a test that keeps the key set prefix-free so the catalogs can take the same nested shape as the app's.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe change renames translation keys with explicit suffixes, updates their consumers, and adds a test that detects translation-key prefix collisions. ChangesTranslation key consistency
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Suggested reviewers: Merge Risk: ⚪ Minimal · up to The renamed translations and updated visible consumers are consistent, with no identified merge-blocking behavior change. 🚥 Pre-merge checks | ✅ 7✅ Passed checks (7 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
🌐 Website E2ETip All tests passed.
🔗 Website PreviewWebsite Preview: https://comfy-website-preview-pr-18012.vercel.app Models is built and gated by PostHog (workshop-enabled), using staging Cloud. This commit: https://website-frontend-7bgozjb1b-comfyui.vercel.app Last updated: 2026-09-18T06:46:57Z for |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## bl/pr17244-02-locale-policy #18012 +/- ##
============================================================
Coverage 82.74% 82.74%
============================================================
Files 2900 2900
Lines 143707 143707
Branches 36972 36972
============================================================
Hits 118909 118909
Misses 23577 23577
Partials 1221 1221
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Summary
Normalize eleven website translation keys so messages can move into nested JSON catalogs.
Changes
Review Focus
Key prefixes must not be both a leaf and an object. Foundation 3/18, prerequisite for the catalog migration.
Validation: Independent context-free review verified all 2,887 messages and consumers at 95a6df3; no actionable findings.
Part of the #17244 localization stack and FE-2045 foundation convergence. Local peer review is not a GitHub approval.