- Don't have an account?{" "} + {t('noAccount')}{" "} - Create account + {t('createAccount')}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 3df32e6..2565f16 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,6 @@ import type { Metadata, Viewport } from "next"; +import { NextIntlClientProvider } from 'next-intl'; +import { getLocale, getMessages } from 'next-intl/server'; import { Inter } from "next/font/google"; import Script from "next/script"; import "./globals.css"; @@ -75,14 +77,17 @@ const THEME_BOOT_SCRIPT = ` })(); `; -export default function RootLayout({ +export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { + const locale = await getLocale(); + const messages = await getMessages(); + return (