From d6a026287a124497bfb592bac2799b6bb965214b Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Thu, 2 Jul 2026 10:55:19 -0500 Subject: [PATCH] SEO --- app/[locale]/layout.tsx | 35 ++++++++++++++++++++++++----------- app/layout.tsx | 14 +------------- lib/i18n/de.ts | 4 ++-- lib/i18n/en.ts | 4 ++-- 4 files changed, 29 insertions(+), 28 deletions(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 1793b16..063a51f 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -33,22 +33,35 @@ export async function generateStaticParams() { return [{ locale: "en" }, { locale: "de" }]; } -export default function LocaleLayout({ +export default async function LocaleLayout({ children, + params, }: { children: React.ReactNode; + params: Promise<{ locale: string }>; }) { + const { locale } = await params; return ( - <> - {children} - {process.env.NEXT_PUBLIC_UMAMI_SRC && process.env.NEXT_PUBLIC_UMAMI_ID && ( -