Guest User

Untitled

a guest
May 23rd, 2024
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import {NextIntlClientProvider} from 'next-intl';
  2. import {getLocale, getMessages} from 'next-intl/server';
  3. import './global.scss';
  4.  
  5. export const metadata = {
  6. title: 'Main',
  7. description: 'I have followed setup instructions carefully',
  8. };
  9.  
  10. export default async function RootLayout({ children }: { children: React.ReactNode }): Promise<React.JSX.Element> {
  11. // removing these works for some reason...
  12. const messages = await getMessages();
  13. const locale = await getLocale();
  14.  
  15. return (
  16. <html lang="en">
  17. <body>
  18. <NextIntlClientProvider>{children}</NextIntlClientProvider>
  19. </body>
  20. </html>
  21. );
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment