We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae8000b commit 1656b11Copy full SHA for 1656b11
1 file changed
apps/docs/app/[lang]/docs/layout.tsx
@@ -3,6 +3,7 @@ import type { Metadata } from 'next';
3
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
4
import type { ReactNode } from 'react';
5
import { baseOptions } from '@/app/layout.config';
6
+import { i18n } from '@/lib/i18n';
7
8
export default async function Layout({
9
params,
@@ -14,7 +15,11 @@ export default async function Layout({
14
15
const { lang } = await params;
16
17
return (
- <DocsLayout tree={source.pageTree[lang]} {...baseOptions}>
18
+ <DocsLayout
19
+ tree={source.pageTree[lang]}
20
+ {...baseOptions}
21
+ i18n={i18n}
22
+ >
23
{children}
24
</DocsLayout>
25
);
0 commit comments