返回 CodeWhale
page.tsx
根目录 / web / app / [locale] / docs / troubleshooting / page.tsx
1 import { DocArticle } from "../_components/doc-article";
2 import { getDocsTroubleshooting } from "@/lib/i18n/dictionaries";
3 import { buildPageMetadata } from "@/lib/page-meta";
4
5 export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
6 const { locale } = await params;
7 const t = getDocsTroubleshooting(locale);
8 return buildPageMetadata({
9 path: "/docs/troubleshooting",
10 locale,
11 title: t.metaTitle,
12 description: t.metaDescription,
13 });
14 }
15
16 export default async function TroubleshootingPage({ params }: { params: Promise<{ locale: string }> }) {
17 const { locale } = await params;
18 return <DocArticle t={getDocsTroubleshooting(locale)} locale={locale} />;
19 }
20
20 lines Plain Text