-
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
[$62.50] Web - Chat - Error message not translated when changing language #52216
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Edited by proposal-police: This proposal was edited at 2024-11-07 20:21:16 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Chat - Error message not translated when changing language What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const [validationErrorText, setValidationErrorText] = useState<TranslationPaths | null | ''>('');
const errorText = useMemo(() => {
if (isPasswordInvalid) {
return translate('attachmentView.passwordIncorrect');
}
if (validationErrorText) {
return translate(validationErrorText);
}
return '';
}, [isPasswordInvalid, validationErrorText, translate]);
const validate = () => {
if (!isPasswordInvalid && password) {
return true;
}
if (!password) {
setValidationErrorText('attachmentView.passwordRequired');
}
return false;
};
What alternative solutions did you explore? (Optional)Result |
Job added to Upwork: https://www.upwork.com/jobs/~021854646700760207529 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
Very minor bug in somewhat niche flow, but we should fix it. Adjusting bounty downwards to reflect that this is a minor bug. |
Contributor details |
|
@Krishna2323's proposal looks good to me. Let's go with them. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@Krishna2323 Is there an ETA for the PR here? |
@allroundexperts, PR ready for review ^ |
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: 9.0.59-0
Reproducible in staging?: Y
Reproducible in production?: Y
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: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The error message should be translated to Spanish
Actual Result:
The error message remains in the original language and is not translated to Spanish
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6657900_1731001767296.Recording__4488.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @allroundexpertsThe text was updated successfully, but these errors were encountered: