import { NextIntlClientProvider } from 'next-intl'; import { getLocale, getMessages } from 'next-intl/server'; import { Inter } from 'next/font/google'; import './globals.css'; const inter = Inter({ subsets: ['latin', 'cyrillic'] }); export default async function RootLayout({ children }: { readonly children: React.ReactNode }) { const locale = await getLocale(); // Providing all messages to the client // side is the easiest way to get started const messages = await getMessages(); return ( {children} ); }