-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate IOU buttons #14344
Translate IOU buttons #14344
Conversation
@Santhosh-Sellavel @youssef-lr One of you needs to 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-01-18.at.2.08.12.AM.movDesktopScreen.Recording.2023-01-18.at.2.10.06.AM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-01-18.at.2.14.03.AM.moviOS & AndroidScreen.Recording.2023-01-18.at.3.13.26.AM.mov |
* Get the confirmation button options | ||
* @returns {Array} | ||
*/ | ||
getSplitOrRequestOptions() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we bind to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From our guidelines:
For class components, methods should be bound in the
constructor()
if passed directly as a prop or needing to be accessed via the component instance from outside of the component's execution context. Binding all methods in the constructor is unnecessary. Learn and understand howthis
works here.
We are calling the method and passing its return value to the child component, not the method itself. We also don't access it in the child component. So I don't think we need to bind it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification, looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM tests well!
bump @youssef-lr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tested well!
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.2.57-2 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.57-3 🚀
|
Details
Makes sure that the IOU confirmation button is always translated to the selected language
Fixed Issues
$ #14305
Tests
+ > Send money
> Enter Amount > Select participant`Settings > Preferences
and change the selected language+ > Request money > Enter amount > Select participant
+ > Split bill > Enter amount > Select participants
Select an open IOU where you owe money
Verify that no errors appear in the JS console
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
chrome.mov
Mobile Web - Safari
safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov