From 7f51268cefa39953e07c4d4ca1721a45e5e301f3 Mon Sep 17 00:00:00 2001 From: rique223 Date: Thu, 14 Sep 2023 15:53:22 -0300 Subject: [PATCH] fix: :bug: Login page warning/error messages weren't being translated The callout messages of the login/register pages weren't being passed through a i18n t function, added it to the code. --- packages/web-ui-registration/src/LoginForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-ui-registration/src/LoginForm.tsx b/packages/web-ui-registration/src/LoginForm.tsx index 112139a483e6..efc7e6268feb 100644 --- a/packages/web-ui-registration/src/LoginForm.tsx +++ b/packages/web-ui-registration/src/LoginForm.tsx @@ -99,7 +99,7 @@ export const LoginForm = ({ setLoginRoute }: { setLoginRoute: DispatchLoginRoute const renderErrorOnSubmit = (error: LoginErrors) => { const { type, i18n } = LOGIN_SUBMIT_ERRORS[error]; - return {i18n}; + return {t(i18n)}; }; if (errors.username?.type === 'invalid-email') {