Schneller, Ramez
This commit is contained in:
@@ -1,19 +1,28 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import './globals.css';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'GSH Digital Services'
|
||||
title: 'GSH Digital Services',
|
||||
description: ''
|
||||
};
|
||||
|
||||
type Props = Readonly<{
|
||||
params: {
|
||||
locale: string;
|
||||
},
|
||||
children: React.ReactNode;
|
||||
}>
|
||||
}>;
|
||||
|
||||
export default async function RootLayout({ params, children }: Props) {
|
||||
const { locale } = await params;
|
||||
|
||||
export default function RootLayout({ children }: Props) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<html lang={locale}>
|
||||
<body>
|
||||
{children}
|
||||
<NextIntlClientProvider>
|
||||
{children}
|
||||
</NextIntlClientProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user