Reverted all changes back to version 7d55ac76c6
This commit is contained in:
@@ -14,7 +14,7 @@ const geistMono = Geist_Mono({
|
|||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
});
|
});
|
||||||
|
|
||||||
export async function generateMetadata({ params: { locale } }: { params: { locale: string } }): Promise<Metadata> {
|
export async function generateMetadata({ params }: { params: { locale: string } }): Promise<Metadata> {
|
||||||
const t = await getI18n();
|
const t = await getI18n();
|
||||||
return {
|
return {
|
||||||
title: t('meta.title'),
|
title: t('meta.title'),
|
||||||
@@ -24,11 +24,12 @@ export async function generateMetadata({ params: { locale } }: { params: { local
|
|||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
params: { locale },
|
params,
|
||||||
}: Readonly<{
|
}: Readonly<{
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
params: { locale: string };
|
params: { locale: string };
|
||||||
}>) {
|
}>) {
|
||||||
|
const { locale } = params;
|
||||||
return (
|
return (
|
||||||
<html lang={locale} suppressHydrationWarning>
|
<html lang={locale} suppressHydrationWarning>
|
||||||
<body
|
<body
|
||||||
|
|||||||
Reference in New Issue
Block a user