Use a real i18n key for the comment collapse toggle - #1504
Conversation
The hide side of the toggle asked for chat.hide-message, which no locale defines, so a muted or low-reputation comment rendered the raw key next to the warning. Point it at discussion.hide, alongside the reveal keys it toggles against. Fixes #1502
|
Warning Review limit reached
Next review available in: 59 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFix comment collapse toggle to use valid i18n key
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
Code Review by Qodo
1.
|
|
Thanks, applied in bb0de9c: Test still fails against |
Fixes #1502
The collapse toggle on a muted / low-reputation comment called
i18next.t("chat.hide-message"). That key exists in no locale, so i18next echoed it and the rawchat.hide-messagestring rendered next to "Author of this content has low reputation." The expand side was fine (discussion.reveal/discussion.reveal-muted).Adds
discussion.hidetoen-US.jsonand points the toggle at it.Tests:
discussion-item.spec.tsxnow renders a low-reputation comment and asserts both toggle labels resolve to a string inen-US.json. It fails againstchat.hide-messageand passes with the fix.