mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-09 16:54:46 +08:00
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import "@/styles/globals.css";
|
|
import "katex/dist/katex.min.css";
|
|
|
|
import { type Metadata } from "next";
|
|
import { Geist } from "next/font/google";
|
|
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { I18nProvider } from "@/core/i18n/context";
|
|
import { detectLocaleServer } from "@/core/i18n/server";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Welcome to DeerFlow",
|
|
description: "A LangChain-based framework for building super agents.",
|
|
};
|
|
|
|
const geist = Geist({
|
|
subsets: ["latin"],
|
|
variable: "--font-geist-sans",
|
|
});
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: Readonly<{ children: React.ReactNode }>) {
|
|
const locale = await detectLocaleServer();
|
|
return (
|
|
<html
|
|
lang={locale}
|
|
className={geist.variable}
|
|
suppressContentEditableWarning
|
|
suppressHydrationWarning
|
|
>
|
|
<body>
|
|
<ThemeProvider attribute="class" enableSystem disableTransitionOnChange>
|
|
<I18nProvider initialLocale={locale}>{children}</I18nProvider>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|