You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment + bonus] Password error translation not updated on Language change #4663
@anthony-hull the error that I reported was more of UI issue even before hitting any API. If you notice the error has translation but it doesn't switch translation on language change.
Your solution might be an extension/separate enhancement for API error handling. I am not sure if any issues exist with that. You can create an issue with relevant data/screenshots etc.
Sorry for the delay on this, @mananjadhav your proposal looks good, could you implement the change on the PasswordForm as well? Regarding the Please fill out all fields issue, I think #4856 will cover that one so for this issue let's just focus on the error translations. I've invited you to the Upwork job, once you accept feel free to start on the PR and I'll assign you.
@anthony-hull I agree that the issue you pointed out is important, and I think we should handle it separately so we can standardize some way of doing that across the app. There is some discussion relating to that in this slack thread so I'd have a look there!
changed the title [-]Password error translation not updated on Language change[/-][+][HOLD for payment + bonus] Password error translation not updated on Language change[/+]on Aug 27, 2021
Activity
MelvinBot commentedon Aug 14, 2021
Triggered auto assignment to @greg-schroeder (
AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.mananjadhav commentedon Aug 14, 2021
Proposal
In the
LoginForm.validateAndSubmitForm, we're storing the whole translated error message in the state.Instead we should only store the key and use translation in the render method
mananjadhav commentedon Aug 14, 2021
The same issue exists in
PasswordFormtoo.Also the error message is a little misleading when there's only one field it says,
Please fill out all fieldsMelvinBot commentedon Aug 16, 2021
Triggered auto assignment to @timszot (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.27 remaining items
mananjadhav commentedon Aug 24, 2021
@anthony-hull the error that I reported was more of UI issue even before hitting any API. If you notice the error has translation but it doesn't switch translation on language change.
Your solution might be an extension/separate enhancement for API error handling. I am not sure if any issues exist with that. You can create an issue with relevant data/screenshots etc.
anthony-hull commentedon Aug 24, 2021
Jag96 commentedon Aug 26, 2021
Sorry for the delay on this, @mananjadhav your proposal looks good, could you implement the change on the
PasswordFormas well? Regarding thePlease fill out all fieldsissue, I think #4856 will cover that one so for this issue let's just focus on the error translations. I've invited you to the Upwork job, once you accept feel free to start on the PR and I'll assign you.@anthony-hull I agree that the issue you pointed out is important, and I think we should handle it separately so we can standardize some way of doing that across the app. There is some discussion relating to that in this slack thread so I'd have a look there!
mananjadhav commentedon Aug 27, 2021
@Jag96 Sure. I’ll take care of both the issues. Thanks.
[-]Password error translation not updated on Language change[/-][+][HOLD for payment + bonus] Password error translation not updated on Language change[/+]Jag96 commentedon Sep 8, 2021
Fix has been on production for 7 days without regression, paid + bonus!