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 },