mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: add generateStaticParams
This commit is contained in:
parent
c4c73c2ef6
commit
c48c2e385b
@ -9,6 +9,7 @@ import { Inter as FontSans } from "next/font/google";
|
||||
import { ThemeProvider } from "next-themes";
|
||||
import { Viewport } from "next";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { locales } from "@/i18n-metadata";
|
||||
|
||||
const fontSans = FontSans({
|
||||
subsets: ["latin"],
|
||||
@ -33,6 +34,11 @@ export const viewport: Viewport = {
|
||||
userScalable: false,
|
||||
};
|
||||
|
||||
export function generateStaticParams() {
|
||||
return locales.map((locale) => ({ locale }));
|
||||
}
|
||||
|
||||
|
||||
export default function LocaleLayout({
|
||||
children,
|
||||
params: { locale },
|
||||
|
Loading…
Reference in New Issue
Block a user