diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index b7c05db..2ad3ff8 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -3,7 +3,6 @@ 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", @@ -16,17 +15,13 @@ const geistMono = Geist_Mono({ }); export async function generateMetadata({ params }: { params: { locale: string } }): Promise { - const t = await getI1_8n(); + const t = await getI18n(); 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 },