i18n improvement

This commit is contained in:
Max Peintner
2025-05-06 14:49:14 +02:00
parent 1b6aaa79e6
commit 4f8aca1434
6 changed files with 8 additions and 5 deletions

View File

@@ -195,7 +195,7 @@
},
"request": {
"title": "{appName} möchte eine Verbindung herstellen:",
"description": "Durch Klicken auf Zulassen erlauben Sie dieser App und Zitadel, Ihre Informationen gemäß ihren jeweiligen Nutzungsbedingungen und Datenschutzrichtlinien zu verwenden. Sie können diesen Zugriff jederzeit widerrufen.",
"description": "Durch Klicken auf Zulassen erlauben Sie {appName} und Zitadel, Ihre Informationen gemäß ihren jeweiligen Nutzungsbedingungen und Datenschutzrichtlinien zu verwenden. Sie können diesen Zugriff jederzeit widerrufen.",
"submit": "Zulassen",
"deny": "Ablehnen"
},

View File

@@ -195,7 +195,7 @@
},
"request": {
"title": "{appName} would like to connect:",
"description": "By clicking Allow, you allow this app and Zitadel to use your information in accordance with their respective terms of service and privacy policies. You can revoke this access at any time.",
"description": "By clicking Allow, you allow {appName} and Zitadel to use your information in accordance with their respective terms of service and privacy policies. You can revoke this access at any time.",
"submit": "Allow",
"deny": "Deny"
},

View File

@@ -195,7 +195,7 @@
},
"request": {
"title": "{appName} desea conectarse:",
"description": "Al hacer clic en Permitir, autorizas a esta aplicación y a Zitadel a usar tu información de acuerdo con sus respectivos términos de servicio y políticas de privacidad. Puedes revocar este acceso en cualquier momento.",
"description": "Al hacer clic en Permitir, autorizas a {appName} y a Zitadel a usar tu información de acuerdo con sus respectivos términos de servicio y políticas de privacidad. Puedes revocar este acceso en cualquier momento.",
"submit": "Permitir",
"deny": "Denegar"
},

View File

@@ -195,7 +195,7 @@
},
"request": {
"title": "{appName} desidera connettersi:",
"description": "Cliccando su Consenti, autorizzi questa app e Zitadel a utilizzare le tue informazioni in conformità con i rispettivi termini di servizio e politiche sulla privacy. Puoi revocare questo accesso in qualsiasi momento.",
"description": "Cliccando su Consenti, autorizzi {appName} e Zitadel a utilizzare le tue informazioni in conformità con i rispettivi termini di servizio e politiche sulla privacy. Puoi revocare questo accesso in qualsiasi momento.",
"submit": "Consenti",
"deny": "Nega"
},

View File

@@ -72,6 +72,7 @@ export default async function Page(props: {
<ConsentScreen
deviceAuthorizationRequestId={deviceAuthorizationRequest?.id}
scope={deviceAuthorizationRequest.scope}
appName={deviceAuthorizationRequest?.appName}
nextUrl={`/loginname?` + params}
/>
</div>

View File

@@ -13,10 +13,12 @@ export function ConsentScreen({
scope,
nextUrl,
deviceAuthorizationRequestId,
appName,
}: {
scope?: string[];
nextUrl: string;
deviceAuthorizationRequestId: string;
appName?: string;
}) {
const t = useTranslations();
const [loading, setLoading] = useState<boolean>(false);
@@ -63,7 +65,7 @@ export function ConsentScreen({
</ul>
<p className="ztdl-p text-xs text-left">
{t("device.request.description")}
{t("device.request.description", { appName: appName })}
</p>
{error && (