-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Merge account - Error messages in code section are not translated to Spanish #59784
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
Comments
Triggered auto assignment to @JmillsExpensify ( |
Triggered auto assignment to @Gonals ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const errorTextToDisplay = () => {
if (latestError === '404 Cannot merge account into itself') {
return translate('404 Cannot merge account into itself');
}
if (latestError === `404 Account doesn't exist`) {
return translate(`404 Account doesn't exist`);
}
if (latestError === '401 Not authorized - Invalid validateCode') {
return translate(`401 Not authorized - Invalid validateCode`);
}
}; and use it in:
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
|
Let's not block on this |
🚨 Edited by proposal-police: This proposal was edited at 2025-04-08 10:36:02 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Merge account - Error messages in code section are not translated to Spanish What is the root cause of that problem?We just render the error we get from the backend: What changes do you think we should make in order to solve the problem?We need to add the errorFields parameter to the data for Onyx for value, and then give the error in failureData, just like we do on the verification page. You can add a new translation to have more control for both languages under the Also change the After that, in the What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)I noticed that there is a problem with displaying a specific error from the backend. That is, we can have several variants of errors returned by the backend, but the same error is always displayed, which we have provided in failureData. The error could be determined dynamically (if possible) or we could provide keys in the form of an error string in the translation file, for example: Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
|
Taking over on this one. It's part of #47073 (comment) |
Working on it |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.1.24-2
Reproducible in staging?: Yes
Reproducible in production?: Unable to check, new feature
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: -
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Macbook Pro 2023 / Sequoia 15.2
App Component: User Settings
Action Performed:
Precond: App is in Spanish
OR In Step 4, enter an email address that does not exist to receive an error message
OR in Step 4, enter the same email address to receive an error message
Expected Result:
User expects the error message to be translated to spanish like the rest of the app
Actual Result:
The error message is not in Spanish
Workaround:
Unknown
Platforms:
Screenshots/Videos
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: