clone init

This commit is contained in:
2026-01-16 21:47:58 +01:00
parent ffbb240a23
commit ce1a73f2bc
160 changed files with 64257 additions and 9 deletions

31
app/[locale]/layout.tsx Normal file
View File

@@ -0,0 +1,31 @@
import {NextIntlClientProvider} from 'next-intl';
import {getMessages} from 'next-intl/server';
import '../../styles/globals.css';
import Header from '@/components/Header';
import Footer from '@/components/Footer';
export default async function LocaleLayout({
children,
params: {locale}
}: {
children: React.ReactNode;
params: {locale: string};
}) {
// Providing all messages to the client
// side is the easiest way to get started
const messages = await getMessages();
return (
<html lang={locale}>
<body className="flex flex-col min-h-screen">
<NextIntlClientProvider messages={messages}>
<Header />
<main className="flex-grow">
{children}
</main>
<Footer />
</NextIntlClientProvider>
</body>
</html>
);
}