Skip to content

Commit 1656b11

Browse files
Copilothotlong
andcommitted
Changes before error encountered
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent ae8000b commit 1656b11

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/docs/app/[lang]/docs/layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Metadata } from 'next';
33
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
44
import type { ReactNode } from 'react';
55
import { baseOptions } from '@/app/layout.config';
6+
import { i18n } from '@/lib/i18n';
67

78
export default async function Layout({
89
params,
@@ -14,7 +15,11 @@ export default async function Layout({
1415
const { lang } = await params;
1516

1617
return (
17-
<DocsLayout tree={source.pageTree[lang]} {...baseOptions}>
18+
<DocsLayout
19+
tree={source.pageTree[lang]}
20+
{...baseOptions}
21+
i18n={i18n}
22+
>
1823
{children}
1924
</DocsLayout>
2025
);

0 commit comments

Comments
 (0)