-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Fix] Localize currency symbol #8299
[Fix] Localize currency symbol #8299
Conversation
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.
|
Updated |
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.
We can do better to dry this code. Please do not request the review until the code is sufficiently dried.
Updated |
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.
These are two videos for LTR and RTL. I don't like the RTL one due to the delay. It is severely visible on Android. When the user removes the char continuously, it takes a bit of time for the space to shrink. @tgolen What do you think?
screen-2022-04-04_23.13.32.mp4
screen-2022-04-04_23.14.05.mp4
#8299 (review) may be related to this issue #7790 |
@mdneyazahmad Do you mind raising the same doubt on the Slack channel? The question is that should we really change the layout for the symbol. Also, Is this UI looking fine #8299 (review)? I am pointing towards the shrinking of the space between 0 and the symbol. |
@mdneyazahmad @tgolen Bump. |
@parasharrajat Sorry for delay. Should I wait for @tgolen reviews, before asking on slack channel? |
No, please feel free to ask. |
Thanks for the review @mountiny. Let's take this to the finish line. |
Co-authored-by: Vit Horacek <[email protected]>
Thanks @mdneyazahmad. Let's get this over the finish line @parasharrajat :) |
@mdneyazahmad You got some conflicts. |
I see this PR #9064 was merged an hour ago and created merge conflict. Updating it soon. |
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.
@mdneyazahmad Gonna wait for you to merge main/resolve conflicts. Thanks @parasharrajat! |
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.
I think this LGTM, I will go ahead and merge and Tim will most likely focus on the Offline refactoring right now.
Thank you @mdneyazahmad and @parasharrajat
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
placeholder={this.props.numberFormat(0)} | ||
keyboardType={CONST.KEYBOARD_TYPE.NUMBER_PAD} | ||
blurOnSubmit={false} |
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.
Hello 👋
While refactoring this code, blurOnSubmit
must have been removed by mistake. This effectively reverted #9064 which fixed #8362
@mdneyazahmad can you please follow up with a PR to fix this regression, thank you!
cc: @parasharrajat @mountiny
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.
Oh yeah it seems like this got missed while merging main. Good catch.
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.
Great catch, the PR is up here #9351
Would any one of you @rushatgabhane or @parasharrajat be able to give this a quick test based on the PR Rushat linked to make sure the behaviour works fine and approve the PR, I will merge. Thanks!
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.
Merged, thanks!
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.
I missed it while fixing the merge conflict. Thanks @rushatgabhane for catching it early and @mountiny for creating the PR.
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.
No worries, this is easy to miss.
🚀 Deployed to production by @yuwenmemon in version: 1.1.73-2 🚀
|
This is not exactly a bug but coming off of #12555 - we should make sure in the future we have ways for the user to get more information about "hidden" features - even just a tooltip like we've now implemented will help to point people in the right direction. |
Details
This pr localizes the currency symbol in different locale in
IOUCurrencySelection
andIOUAmountPage
.Example:
$ 999 (English)
will be999 US$ (Espanol)
Fixed Issues
$ #7915
Tests
Espanol
.FAB
->Request Money
.999
.$ 999 (English)
and999 US$ (Espanol)
.IOUCurrencySelection
page has all currency list withSO4217 Code
andlocalized symbol
.PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
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)QA Steps
Espanol
.FAB
->Request Money
.999
.$ 999 (English)
and999 US$ (Espanol)
.IOUCurrencySelection
page has all currency list withSO4217 Code
andlocalized symbol
.Screenshots
Web
web.mp4
Mobile Web
mweb.mp4
Desktop
desktop.mp4
iOS
ios.mp4
Android
android.mp4