-
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
Log in - Language picker selection should be remembered after you log in or sign up #4999
Comments
Triggered auto assignment to @MonilBhavsar ( |
When we change the preferred language in the login page, we update that in Onyx, but we don't update that in NVP. I tried changing the above statement to manually make API call to get preferred language from NVP and update it, if it's different from selected one. And finally set the preferred language in Onyx. |
@MonilBhavsar Am I correct in understanding that your proposal is something like this?
Because I think that might work (and could even be external). However, we need to be careful and only set the preferred locale NVP if the user switched to a non-standard locale before logging in or signing up. Basically we want to make sure we're avoiding this situation:
With that qualification I think this proposal looks good. Feel free to implement it yourself or make it external. Up to you, but I think it might be less work at this point to just keep it internal (since we have already found a solution we think will work). |
We already update that in Onyx here, Also we have a call to update the NVP in
Yes exactly, I think we can do that in Authscreen and replace the current statement that overwrites with Onyx data
So, we don't set the NVP if we they have chosen Yes, I'll handle this as I am trying to make myself familiar with this repo |
Yep, that sounds correct! |
@MonilBhavsar Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Closing it as it's deployed to prod |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Language selection should still be the same after login in or signing up
Actual Result:
After log in or sign up the language is displayed in english. In case of the existing user, it will always change to the language that was previously selected in preferences.
Workaround:
N/A.
Platform:
Where is this issue occurring?
Version Number: 1.0.91-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on GitHub
From @roryabraham https://expensify.slack.com/archives/C01GTK53T8Q/p1630453024244700
The text was updated successfully, but these errors were encountered: