From b68bd202724d3c8d486828686b1f5af532e6b2aa Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 22 Apr 2025 09:10:13 +0800 Subject: [PATCH] . --- app/[locale]/login/page.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/[locale]/login/page.tsx b/app/[locale]/login/page.tsx index 9e127fb..81f1c96 100644 --- a/app/[locale]/login/page.tsx +++ b/app/[locale]/login/page.tsx @@ -93,7 +93,7 @@ export default async function Login({ if (!homeWorkspace) { throw new Error( - homeWorkspaceError?.message || "An unexpected error occurred" + homeWorkspaceError?.message || t("login.unexpectedError") ) } @@ -134,7 +134,8 @@ export default async function Login({ const emailMatch = emailWhitelist?.includes(email) if (!domainMatch && !emailMatch) { return redirect( - `/${localeString}/login?message=Email ${email} is not allowed to sign up.` + // `/${localeString}/login?message=Email ${email} is not allowed to sign up.` + `/${localeString}/login?message=${t("login.signupNotAllowed", { email })}` ) } } @@ -179,7 +180,7 @@ export default async function Login({ return redirect(`/${localeString}/login?message=${error.message}`) } - return redirect(`/${localeString}/login?message=Check email to reset password`) + return redirect(`/${localeString}/login?message=${t("login.checkEmailToReset")}`) }