30 lines
887 B
TypeScript
30 lines
887 B
TypeScript
import "@/styles/globals.css";
|
|
import "katex/dist/katex.min.css";
|
|
|
|
import { type Metadata } from "next";
|
|
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { I18nProvider } from "@/core/i18n/context";
|
|
import { detectLocaleServer } from "@/core/i18n/server";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "XClaw",
|
|
description:
|
|
"Desscriptions of XClawDesscriptions of XClawDesscriptions of XClaw",
|
|
};
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: Readonly<{ children: React.ReactNode }>) {
|
|
const locale = await detectLocaleServer();
|
|
return (
|
|
<html lang={locale} suppressContentEditableWarning suppressHydrationWarning>
|
|
<body>
|
|
<ThemeProvider attribute="class" enableSystem disableTransitionOnChange>
|
|
<I18nProvider initialLocale={locale}>{children}</I18nProvider>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|