[dyad] Fixing a persistent build error - wrote 1 file(s)

This commit is contained in:
[dyad]
2026-01-18 15:24:52 +01:00
parent 71d55b42bd
commit e208d4e235

View File

@@ -3,6 +3,7 @@ import { Geist, Geist_Mono } from "next/font/google";
import "../globals.css"; import "../globals.css";
import { getI18n } from "@/lib/i18n/server"; import { getI18n } from "@/lib/i18n/server";
import { Providers } from "@/components/providers"; import { Providers } from "@/components/providers";
import { locales } from "@/lib/i18n";
const geistSans = Geist({ const geistSans = Geist({
variable: "--font-geist-sans", variable: "--font-geist-sans",
@@ -15,13 +16,17 @@ const geistMono = Geist_Mono({
}); });
export async function generateMetadata({ params }: { params: { locale: string } }): Promise<Metadata> { export async function generateMetadata({ params }: { params: { locale: string } }): Promise<Metadata> {
const t = await getI18n(); const t = await getI1_8n();
return { return {
title: t('meta.title'), title: t('meta.title'),
description: t('meta.description'), description: t('meta.description'),
}; };
} }
export async function generateStaticParams() {
return locales.map((locale) => ({ locale }));
}
export default async function RootLayout({ export default async function RootLayout({
children, children,
params: { locale }, params: { locale },