import {NextIntlClientProvider} from 'next-intl'; import {getMessages, getTranslations} from 'next-intl/server'; import '../../styles/globals.css'; import Header from '@/components/Header'; import Footer from '@/components/Footer'; import { Metadata, Viewport } from 'next'; export async function generateMetadata({params: {locale}}: {params: {locale: string}}): Promise { const t = await getTranslations({locale, namespace: 'Index.meta'}); return { title: t('title'), description: t('description') }; } export const viewport: Viewport = { width: 'device-width', initialScale: 1, maximumScale: 1, userScalable: false, viewportFit: 'cover', themeColor: '#001a4d', }; 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 (
{children}