- Confirm your new E-Mail
+ {t("auth.confirmEmailChange.header")}
{status === "loading" ? (
) : (
- Click{" "}
- {" "}
- to confirm your new email.
+
+ Click
+
+ to confirm your new email.
+
)}
);
};
-
-export default ConfirmEmailChange;
diff --git a/frontend/apps/web/src/pages/auth/ConfirmPasswordRecovery.tsx b/frontend/apps/web/src/pages/auth/ConfirmPasswordRecovery.tsx
index fd3ef90d..59f4de8b 100644
--- a/frontend/apps/web/src/pages/auth/ConfirmPasswordRecovery.tsx
+++ b/frontend/apps/web/src/pages/auth/ConfirmPasswordRecovery.tsx
@@ -5,6 +5,9 @@ import React, { useState } from "react";
import { Link as RouterLink, useParams } from "react-router-dom";
import { z } from "zod";
import { api } from "@/core/api";
+import i18n from "@/i18n";
+import { Trans, useTranslation } from "react-i18next";
+import { useTitle } from "@/core/utils";
const validationSchema = z
.object({
@@ -12,16 +15,19 @@ const validationSchema = z
password2: z.string({ required_error: "please repeat your desired password" }),
})
.refine((data) => data.password === data.password2, {
- message: "passwords don't match",
+ message: i18n.t("common.passwordsDoNotMatch"),
path: ["password2"],
});
type FormSchema = z.infer