diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 634fb96..f9ec181 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,5 @@ import { LocaleProvider } from '@/lib/i18n' +import { getLocale } from '@/lib/i18n/server' import { ThemeProvider, themeInitScript } from '@/lib/theme' import { cn } from '@/lib/utils' import { Analytics } from '@vercel/analytics/next' @@ -37,14 +38,15 @@ export const metadata: Metadata = { 'A coding environment where the AI never hands you the answer. It makes you find it. For devs who want to actually learn in the AI era.', } -export default function RootLayout({ +export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode }>) { + const locale = await getLocale() return (