fix(i18n): localize auth-page footer tagline

The locale-prefixed auth pages (/de/login, /fr/login, etc.) were
showing the English tagline "Metabolic Psychiatry & Systemic
Longevity · Zürich" below a localized form — visibly wrong for
German visitors arriving from the marketing nav. Now reads from the
existing meta.tagline translation key per locale.

Verified via curl on /de, /en, /fr, /it /login pages: each renders
its own tagline.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
g-butandClaude Opus 4.7 committed 2026-04-25 16:56:30 +02:00
1 parent 8fc0a1018c
commit c8a430d5d6
1 file changed
+11 -2
+11 -2
View File
@@ -1,9 +1,18 @@
import { getTranslations } from "next-intl/server";
import { Link } from "@/lib/i18n/navigation";
import Logo from "@/components/Logo";
import styles from "./auth.module.css";
import { COMPANY } from "@/lib/config/company";
export default function AuthLayout({ children }: { children: React.ReactNode }) {
type Props = {
children: React.ReactNode;
params: Promise<{ locale: string }>;
};
export default async function AuthLayout({ children, params }: Props) {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "meta" });
return (
<div className={styles.page}>
<div className={styles.card}>
@@ -13,7 +22,7 @@ export default function AuthLayout({ children }: { children: React.ReactNode })
{children}
</div>
<p className={styles.pageFooter}>
Metabolic Psychiatry &amp; Systemic Longevity · Zürich
{t("tagline")} · {COMPANY.address.city}
</p>
</div>
);