fix: Use localized message for split requests in LHN - #29263
Conversation
Signed-off-by: Pavlo Tsimura <paultsimura@gmail.com>
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
| requestAmount: ({amount}: RequestAmountParams) => `solicitar ${amount}`, | ||
| requestedAmount: ({formattedAmount, comment}: RequestedAmountMessageParams) => `solicité ${formattedAmount}${comment ? ` para ${comment}` : ''}`, | ||
| splitAmount: ({amount}: SplitAmountParams) => `dividir ${amount}`, | ||
| splitAmount: ({amount, comment}: SplitAmountParams) => `dividir ${amount}${comment ? ` para ${comment}` : ''}`, |
There was a problem hiding this comment.
@aimane-chnaif I have modified this copy, but the format is identical to the already existing one above, requestedAmount.
Should I still request the translation approval here?
There was a problem hiding this comment.
yes, please request. it's same split in English for both present and past form but might be different in Spanish.
We should use present form in confirmation screen and past form in report action, similar to request, requested
There was a problem hiding this comment.
That's a great catch! Thanks.
|
@paultsimura let me know when ready for review |
|
@aimane-chnaif it's ready. I'm using the suggested |
Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com>
|
Thanks @aimane-chnaif, ready for re-review. |
|
@paultsimura please pull main. The branch is 1130 commits behind |
|
@aimane-chnaif done. Merged and re-tested. |
Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com>
Reviewer Checklist
Screenshots/VideosWebweb1.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/robertjchen in version: 1.3.84-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
|
🚀 Deployed to staging by https://github.com/robertjchen in version: 1.3.85-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|
Details
Display a properly localized
split {amount} for {description}message in LHN for group chats with a split bill as the last message.Fixed Issues
$ #26020
PROPOSAL: #26020 (comment)
Tests
split {amount} for {description}Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
split-android.mov
Android: mWeb Chrome
chrome.mov
iOS: Native
iOS.mov
iOS: mWeb Safari
safari.MP4
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov