fix(login): use translation title key prop to set page title (#10537)

This PR sets the page title to the same title as the respective pages
and introduces a default title ("Login with Zitadel").
Closes #10282 

# Which Problems Are Solved

Missing page title on pages.

# How the Problems Are Solved

Using the hosted translation service, we load and merge properties to
set the page title

---------

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Max Peintner
2025-08-22 10:59:13 +00:00
committed by GitHub
co-authored by Livio Spring
parent 75fe4eb651
commit 772e9c5e3d
27 changed files with 155 additions and 7 deletions
@@ -8,8 +8,15 @@ import { getServiceUrlFromHeaders } from "@/lib/service-url";
import { loadMostRecentSession } from "@/lib/session";
import { getBrandingSettings, getUserByID } from "@/lib/zitadel";
import { HumanUser, User } from "@zitadel/proto/zitadel/user/v2/user_pb";
import { Metadata } from "next";
import { getTranslations } from "next-intl/server";
import { headers } from "next/headers";
export async function generateMetadata(): Promise<Metadata> {
const t = await getTranslations("verify");
return { title: t('verify.title')};
}
export default async function Page(props: { searchParams: Promise<any> }) {
const searchParams = await props.searchParams;