diff --git a/apps/studio/frontend/app/layout.tsx b/apps/studio/frontend/app/layout.tsx index 9972a2d09..af5def29b 100644 --- a/apps/studio/frontend/app/layout.tsx +++ b/apps/studio/frontend/app/layout.tsx @@ -1,5 +1,7 @@ import type { Metadata } from "next"; import type { ReactNode } from "react"; +import { NextIntlClientProvider } from "next-intl"; +import { getLocale, getMessages, getTranslations } from "next-intl/server"; import Shell from "@/components/Shell"; import { ToastProvider } from "@/components/Toast"; import "./globals.css"; @@ -9,13 +11,17 @@ export const metadata: Metadata = { description: "Lion Studio orchestration observability", }; -export default function RootLayout({ +export default async function RootLayout({ children, }: Readonly<{ children: ReactNode; }>) { + const locale = await getLocale(); + const messages = await getMessages(); + const t = await getTranslations("common"); + return ( - + {/* Prevent FOUC: read localStorage before paint, default to light */}