mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 06:28:18 +01:00
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:
1 file changed
+11
-2
@@ -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 & Systemic Longevity · Zürich
|
||||
{t("tagline")} · {COMPANY.address.city}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user