Reverted all changes back to version 71d55b42bd
This commit is contained in:
@@ -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<Metadata> {
|
||||
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 },
|
||||
|
||||
Reference in New Issue
Block a user