-
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
[$1000] Login - "Incorrect magic code..." message is not translated in Spanish #23081
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Login - "Incorrect magic code..." message is not translated in Spanish What is the root cause of that problem?The error display is returned by BE. It is const and we cannot translate it when the language change
What changes do you think we should make in order to solve the problem?We should create a translation key for this error and BE should return this translation key instead of the constant error And then we can use
What alternative solutions did you explore? (Optional)Instead of showing an error due to BE returns, we can create a translation error in |
ProposalProblem"Incorrect magic code..." message is not translated in Spanish Root CauseThe issue lies in the backend code, where the error message is not being sent as a phrase key. As a result, when the ref- https://github.com/Expensify/App/blob/b9508b616f3a7229365c8bd7280fd1e34cfd2f9b/src/components/FormHelpMessage.js#L39C4-L39C76 Proposed ChangesTo address this issue, we need to send a error as a phrase key and have corresponding translation in both phrase dictionaries english and spanish |
ProposalPlease re-state the problem that we are trying to solve in this issue.Login - "Incorrect magic code..." message is not translated in Spanish What is the root cause of that problem?In the Validate code form for Sign in step, whenever we click Sign in button, it will call this action util
Inside this action util, when the API call is failed, we haven't set any error message in FE side yet App/src/libs/actions/Session/index.js Lines 339 to 348 in edfea4b
So when its failure, we can only pick the error message of BE API returning to display, and BE error is English only
What changes do you think we should make in order to solve the problem?I think we can generate error message in FE side then display in the form in this case, because we're validating the code, most of cases it's failed due to invalid magic code.
|
@hungvu193 this seems like a similar issue as this one - I think this is essentially a dupe? |
@adelekennedy I don't think it's a dup. Because in this GH issue, the current error message is come from BE, and in FE we haven't set the error message yet. |
Yep. This is more like a BE issue |
@adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~015e1220542398ee6e |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @robertKozik ( |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Current assignee @robertKozik is eligible for the External assigner, not assigning anyone new. |
reproduced! From above this is likely internal but adding the external label so the C+ makes the final call |
Sorry for overdue @adelekennedy, missed that one. Yeah I agree that this issue should be internal, as backend should return proper translation key for this error. It cannot be solved only on FE side |
Triggered auto assignment to @cristipaval ( |
Current assignee @robertKozik is eligible for the Internal assigner, not assigning anyone new. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
checking here @cristipaval @robertKozik how should we move forward on this one? |
I'll have a look tomorrow at this one to check if it is internal. |
@cristipaval @adelekennedy @robertKozik this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
The issue happens because we do not have internationalization in the backend yet and that error comes from the backend. Closing this issue for now, it will be fixed when we'll support i18n in the backend. |
Sending a translation key from backend and having a corresponding translation to key in dictionaries will resolve the issue in the mean time. |
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:
"Incorrect magic code. Please try again or request a new code." message should be displayed in Spanish language
Actual Result:
Even the app language is changed to Spanish - the message "Incorrect magic code. Please try again or request a new code." is still displayed in English
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.42.6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6132070_Recording__408.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: