Files
deer-flow/frontend/src/app/layout.tsx

40 lines
1.0 KiB
TypeScript
Raw Normal View History

import "@/styles/globals.css";
2026-01-29 13:55:30 +08:00
import "katex/dist/katex.min.css";
import { type Metadata } from "next";
import { Geist } from "next/font/google";
2026-01-15 23:40:21 +08:00
import { ThemeProvider } from "@/components/theme-provider";
2026-01-20 16:00:39 +08:00
import { I18nProvider } from "@/core/i18n/context";
import { detectLocaleServer } from "@/core/i18n/server";
2026-01-15 23:40:21 +08:00
export const metadata: Metadata = {
2026-01-15 23:40:21 +08:00
title: "Welcome to DeerFlow",
description: "A LangChain-based framework for building super agents.",
};
const geist = Geist({
subsets: ["latin"],
variable: "--font-geist-sans",
});
2026-01-20 16:00:39 +08:00
export default async function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
2026-01-20 16:00:39 +08:00
const locale = await detectLocaleServer();
return (
2026-01-15 23:40:21 +08:00
<html
2026-01-20 16:00:39 +08:00
lang={locale}
2026-01-15 23:40:21 +08:00
className={geist.variable}
suppressContentEditableWarning
suppressHydrationWarning
>
<body>
2026-01-22 13:43:45 +08:00
<ThemeProvider attribute="class" enableSystem disableTransitionOnChange>
2026-01-20 16:00:39 +08:00
<I18nProvider initialLocale={locale}>{children}</I18nProvider>
2026-01-15 23:40:21 +08:00
</ThemeProvider>
</body>
</html>
);
}