fix(i18n): use correct i18n key for workspace confirmation#38662
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 049ca21 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
WalkthroughCorrects an i18n key used in the workspace registration confirmation step: replaces Changes
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
Pull request overview
This PR updates the workspace registration step-2 confirmation text to use the correct i18n key so the UI shows a translated string instead of a missing-translation key.
Changes:
- Switch
Transi18n key fromRegisterWorkspace_Setup_Email_Confirmationtocloud.RegisterWorkspace_Setup_Email_Confirmation.
Comments suppressed due to low confidence (1)
apps/meteor/client/views/admin/workspace/VersionCard/modals/RegisterWorkspaceSetupModal/RegisterWorkspaceSetupStepTwoModal.tsx:90
- With this key change,
Transwill start using the existing translation stringcloud.RegisterWorkspace_Setup_Email_Confirmation, which currently contains literal<1>email</1>in the locale files. That means the rendered UI will show the word “email” instead of the actualemailprop value. To keep the dynamic email address, update the translation to use interpolation (e.g.,<1>{{emailAddress}}</1>) and passvaluestoTrans(e.g.,{ emailAddress: email }).
<Trans i18nKey='cloud.RegisterWorkspace_Setup_Email_Confirmation'>
<Box is='p'>
Email sent to{' '}
<Box is='span' fontScale='p2b'>
{email}{' '}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Lint: |
4159aeb to
b987eb8
Compare
b987eb8 to
dd5a113
Compare
|
Hi team! 👋 I've resolved the conflicts and the previous feedback. Could someone from @RocketChat/frontend please review this? |
Proposed changes (including videos or screenshots)
Issue(s)
Closes: #38830
COMM-144
Steps to test or reproduce
Further comments
Before/After
Summary by CodeRabbit