diff --git a/apps/login/src/components/idps/sign-in-with-apple.tsx b/apps/login/src/components/idps/sign-in-with-apple.tsx
index 8b9419ae02..17e3fc43bb 100644
--- a/apps/login/src/components/idps/sign-in-with-apple.tsx
+++ b/apps/login/src/components/idps/sign-in-with-apple.tsx
@@ -1,7 +1,7 @@
"use client";
-import { useTranslations } from "next-intl";
import { forwardRef } from "react";
+import { Translated } from "../translated";
import { BaseButton, SignInWithIdentityProviderProps } from "./base-button";
export const SignInWithApple = forwardRef<
@@ -9,7 +9,6 @@ export const SignInWithApple = forwardRef<
SignInWithIdentityProviderProps
>(function SignInWithApple(props, ref) {
const { children, name, ...restProps } = props;
- const t = useTranslations("idp");
return (
@@ -24,7 +23,13 @@ export const SignInWithApple = forwardRef<
{children ? (
children
) : (
- {name ? name : t("signInWithApple")}
+
+ {name ? (
+ name
+ ) : (
+
+ )}
+
)}
);
diff --git a/apps/login/src/components/idps/sign-in-with-azure-ad.tsx b/apps/login/src/components/idps/sign-in-with-azure-ad.tsx
index a3a4c82272..3cd33708b6 100644
--- a/apps/login/src/components/idps/sign-in-with-azure-ad.tsx
+++ b/apps/login/src/components/idps/sign-in-with-azure-ad.tsx
@@ -1,7 +1,7 @@
"use client";
-import { useTranslations } from "next-intl";
import { forwardRef } from "react";
+import { Translated } from "../translated";
import { BaseButton, SignInWithIdentityProviderProps } from "./base-button";
export const SignInWithAzureAd = forwardRef<
@@ -9,7 +9,6 @@ export const SignInWithAzureAd = forwardRef<
SignInWithIdentityProviderProps
>(function SignInWithAzureAd(props, ref) {
const { children, name, ...restProps } = props;
- const t = useTranslations("idp");
return (
@@ -30,7 +29,13 @@ export const SignInWithAzureAd = forwardRef<
{children ? (
children
) : (
- {name ? name : t("signInWithAzureAD")}
+
+ {name ? (
+ name
+ ) : (
+
+ )}
+
)}
);
diff --git a/apps/login/src/components/idps/sign-in-with-github.tsx b/apps/login/src/components/idps/sign-in-with-github.tsx
index 45108d17f7..8800e66c3d 100644
--- a/apps/login/src/components/idps/sign-in-with-github.tsx
+++ b/apps/login/src/components/idps/sign-in-with-github.tsx
@@ -1,7 +1,7 @@
"use client";
-import { useTranslations } from "next-intl";
import { forwardRef } from "react";
+import { Translated } from "../translated";
import { BaseButton, SignInWithIdentityProviderProps } from "./base-button";
function GitHubLogo() {
@@ -42,7 +42,6 @@ export const SignInWithGithub = forwardRef<
SignInWithIdentityProviderProps
>(function SignInWithGithub(props, ref) {
const { children, name, ...restProps } = props;
- const t = useTranslations("idp");
return (
@@ -52,7 +51,13 @@ export const SignInWithGithub = forwardRef<
{children ? (
children
) : (
- {name ? name : t("signInWithGithub")}
+
+ {name ? (
+ name
+ ) : (
+
+ )}
+
)}
);
diff --git a/apps/login/src/components/idps/sign-in-with-gitlab.tsx b/apps/login/src/components/idps/sign-in-with-gitlab.tsx
index 8a1ed7d349..00f3712a90 100644
--- a/apps/login/src/components/idps/sign-in-with-gitlab.tsx
+++ b/apps/login/src/components/idps/sign-in-with-gitlab.tsx
@@ -1,7 +1,7 @@
"use client";
-import { useTranslations } from "next-intl";
import { forwardRef } from "react";
+import { Translated } from "../translated";
import { BaseButton, SignInWithIdentityProviderProps } from "./base-button";
export const SignInWithGitlab = forwardRef<
@@ -9,7 +9,6 @@ export const SignInWithGitlab = forwardRef<
SignInWithIdentityProviderProps
>(function SignInWithGitlab(props, ref) {
const { children, name, ...restProps } = props;
- const t = useTranslations("idp");
return (
@@ -41,7 +40,13 @@ export const SignInWithGitlab = forwardRef<
{children ? (
children
) : (
- {name ? name : t("signInWithGitlab")}
+
+ {name ? (
+ name
+ ) : (
+
+ )}
+
)}
);
diff --git a/apps/login/src/components/idps/sign-in-with-google.tsx b/apps/login/src/components/idps/sign-in-with-google.tsx
index 6162ef4a96..4759ad69c9 100644
--- a/apps/login/src/components/idps/sign-in-with-google.tsx
+++ b/apps/login/src/components/idps/sign-in-with-google.tsx
@@ -1,7 +1,7 @@
"use client";
-import { useTranslations } from "next-intl";
import { forwardRef } from "react";
+import { Translated } from "../translated";
import { BaseButton, SignInWithIdentityProviderProps } from "./base-button";
export const SignInWithGoogle = forwardRef<
@@ -9,7 +9,6 @@ export const SignInWithGoogle = forwardRef<
SignInWithIdentityProviderProps
>(function SignInWithGoogle(props, ref) {
const { children, name, ...restProps } = props;
- const t = useTranslations("idp");
return (
@@ -54,7 +53,13 @@ export const SignInWithGoogle = forwardRef<
{children ? (
children
) : (
- {name ? name : t("signInWithGoogle")}
+
+ {name ? (
+ name
+ ) : (
+
+ )}
+
)}
);
diff --git a/apps/login/src/components/set-register-password-form.tsx b/apps/login/src/components/set-register-password-form.tsx
index 715be00ffa..7660e60753 100644
--- a/apps/login/src/components/set-register-password-form.tsx
+++ b/apps/login/src/components/set-register-password-form.tsx
@@ -8,7 +8,6 @@ import {
} from "@/helpers/validators";
import { registerUser } from "@/lib/server/register";
import { PasswordComplexitySettings } from "@zitadel/proto/zitadel/settings/v2/password_settings_pb";
-import { useTranslations } from "next-intl";
import { useRouter } from "next/navigation";
import { useState } from "react";
import { FieldValues, useForm } from "react-hook-form";
@@ -44,8 +43,6 @@ export function SetRegisterPasswordForm({
organization,
requestId,
}: Props) {
- const t = useTranslations("register");
-
const { register, handleSubmit, watch, formState } = useForm({
mode: "onBlur",
defaultValues: {