import { NextIntlClientProvider } from 'next-intl'; import { getLocale, getMessages, getTranslations } from 'next-intl/server'; import type { Metadata, Viewport } from 'next'; import { Providers } from './providers'; import { SyncProvider } from './sync-provider'; import './globals.css'; export async function generateMetadata(): Promise { const t = await getTranslations('metadata'); return { title: t('title'), description: t('description'), manifest: '/manifest.webmanifest', applicationName: t('appName'), appleWebApp: { capable: true, title: t('appName'), statusBarStyle: 'default', }, }; } export const viewport: Viewport = { themeColor: '#0f172a', width: 'device-width', initialScale: 1, }; export default async function RootLayout({ children }: { children: React.ReactNode }) { const locale = await getLocale(); const messages = await getMessages(); return ( {children} ); }