From e208d4e2353d9e352f11749a14e4421c9a574a22 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Sun, 18 Jan 2026 15:24:52 +0100 Subject: [PATCH] [dyad] Fixing a persistent build error - wrote 1 file(s) --- src/app/[locale]/layout.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 2ad3ff8..b7c05db 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -3,6 +3,7 @@ import { Geist, Geist_Mono } from "next/font/google"; import "../globals.css"; import { getI18n } from "@/lib/i18n/server"; import { Providers } from "@/components/providers"; +import { locales } from "@/lib/i18n"; const geistSans = Geist({ variable: "--font-geist-sans", @@ -15,13 +16,17 @@ const geistMono = Geist_Mono({ }); export async function generateMetadata({ params }: { params: { locale: string } }): Promise { - const t = await getI18n(); + const t = await getI1_8n(); return { title: t('meta.title'), description: t('meta.description'), }; } +export async function generateStaticParams() { + return locales.map((locale) => ({ locale })); +} + export default async function RootLayout({ children, params: { locale },