init:初始化项目

This commit is contained in:
2026-04-07 15:21:27 +08:00
commit 1b494b6029
366 changed files with 11461 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { notFound } from "next/navigation";
import { SiteChrome } from "@/components/site-chrome";
import { getDictionary, isLocale, type Locale } from "@/lib/site-content";
export default async function LocaleLayout({
children,
params,
}: Readonly<{
children: React.ReactNode;
params: Promise<{ locale: string }>;
}>) {
const { locale } = await params;
if (!isLocale(locale)) {
notFound();
}
const dictionary = getDictionary(locale as Locale);
return (
<SiteChrome dictionary={dictionary} locale={locale}>
{children}
</SiteChrome>
);
}