-
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
[Onfido] chosen locale specific language on Web based platforms #15179
Conversation
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
@MariaHCD @mananjadhav 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] |
I was unable to test for mWeb on Android due to issue with my dev environment i think, asked on slack here. Based on the staging behaviour for mWeb Android, I'm pretty sure that the behaviour will be as expected and similar to as on mWeb Safari. |
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.
Reviewer Checklist
Screenshots/VideosThanks for the PR @Prince-Mendiratta. @MariaHCD I wasn't able to test this on my Android Chrome emulator, but it tested well in other platforms. I think we should be good to merge here. |
✋ 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/MariaHCD in version: 1.2.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.2.74-0 🚀
|
Details
This PR adds the ability to show locale specific language for users when starting the Onfido flow. Depending on the language chosen in preferences, the Onfido flow will have that specific language on Web and Desktop. For native devices and mWeb, this setting is not respected but instead the device language itself is responsible for deciding which language will be shown to the user. For more information on the native language behaviour, please check the video for Android that I have attached.
Fixed Issues
$ #15089 (comment)
PROPOSAL: #15089 (comment)
Tests
For Web and Desktop
For mWeb and native devices
Repeat the aforementioned steps from step 1 to 5. Ensure that the Onfido pop up shown is displayed according to the native language of the device.
Offline tests
N/A
QA Steps
Same as aforementioned 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.mp4
Mobile Web - Chrome
Mobile Web - Safari
mWeb-safari.mp4
Desktop
desktop.mp4
iOS
iOS.mp4
Android
android_kdxnEGzY.mp4