// @auto-i18n-check. Please do not delete the line. import { ThemeColorManager } from "@/components/ThemeColorManager" import getEnv from "@/lib/env-entry" import { FilterProvider } from "@/lib/network-filter-context" import { StatusProvider } from "@/lib/status-context" import { cn } from "@/lib/utils" import "@/styles/globals.css" import type { Metadata } from "next" import { Viewport } from "next" import { NextIntlClientProvider } from "next-intl" import { getLocale, getMessages } from "next-intl/server" import { PublicEnvScript } from "next-runtime-env" import { ThemeProvider } from "next-themes" import { Inter as FontSans } from "next/font/google" import React from "react" const fontSans = FontSans({ subsets: ["latin"], variable: "--font-sans", }) const customTitle = getEnv("NEXT_PUBLIC_CustomTitle") const customDescription = getEnv("NEXT_PUBLIC_CustomDescription") const disableIndex = getEnv("NEXT_PUBLIC_DisableIndex") export const metadata: Metadata = { manifest: "/manifest.json", title: customTitle || "NezhaDash", description: customDescription || "A dashboard for nezha", appleWebApp: { capable: true, title: customTitle || "NezhaDash", statusBarStyle: "default", }, robots: { index: disableIndex ? false : true, follow: disableIndex ? false : true, }, } export const viewport: Viewport = { width: "device-width", initialScale: 1, maximumScale: 1, userScalable: false, } export default async function LocaleLayout({ children }: { children: React.ReactNode }) { const locale = await getLocale() const messages = await getMessages() return ( {children} ) }