Bin doof
This commit is contained in:
29
app/[locale]/layout.tsx
Normal file
29
app/[locale]/layout.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import '@/app/globals.css';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'GSH Digital Services',
|
||||
description: ''
|
||||
};
|
||||
|
||||
type Props = {
|
||||
params: {
|
||||
locale: string;
|
||||
},
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export default async function RootLayout({ params, children }: Props) {
|
||||
const { locale } = await params;
|
||||
|
||||
return (
|
||||
<html lang={locale}>
|
||||
<body>
|
||||
<NextIntlClientProvider>
|
||||
{children}
|
||||
</NextIntlClientProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user