Repository navigation
fix: number of participants in userlist is not correctly displayed after switching to RTL locale - #21660
Conversation
WalkthroughThe pull request introduces changes to the Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🔇 Additional comments (1)bigbluebutton-html5/imports/ui/components/user-list/user-list-graphql/user-participants-title/component.tsx (1)
Avoid hardcoding locale and remove unnecessary notation option While the implementation fixes the formatting issue, there are two concerns:
Apply this diff to improve the implementation: {intl.formatMessage(
messages.usersTitle,
{
- 0: count.toLocaleString('en-US', { notation: 'standard' }),
+ 0: count.toLocaleString(),
},
)}Let's verify the RTL number formatting behavior: Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
Update user participants title to include the number of users in the locale string, preventing an issue with participants number being displayed as
USERS) 1(instead ofUSERS (1)after switching to a RTL locale and back to an LTR localebefore
screen-2024-11-12_15.10.21.mp4
after
screen-2024-11-12_15.09.07.mp4
How to test