Skip to content

Commit

Permalink
fix: 🐛 Login page warning/error messages weren't being translated
Browse files Browse the repository at this point in the history
The callout messages of the login/register pages weren't being passed through a i18n t function, added it to the code.
  • Loading branch information
rique223 committed Sep 14, 2023
1 parent 781bdfe commit 7f51268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-ui-registration/src/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const LoginForm = ({ setLoginRoute }: { setLoginRoute: DispatchLoginRoute

const renderErrorOnSubmit = (error: LoginErrors) => {
const { type, i18n } = LOGIN_SUBMIT_ERRORS[error];
return <Callout type={type}>{i18n}</Callout>;
return <Callout type={type}>{t(i18n)}</Callout>;
};

if (errors.username?.type === 'invalid-email') {
Expand Down

0 comments on commit 7f51268

Please sign in to comment.