mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-04 02:52:55 +08:00
- Updated the demo API to support locale-based content rendering. - Refactored the main layout to accommodate language-specific metadata and routing. - Introduced new components for blog and documentation pages, ensuring proper language handling. - Added styles for improved UI consistency across different sections. - Removed deprecated layout files and streamlined the structure for better maintainability.
19 lines
532 B
TypeScript
19 lines
532 B
TypeScript
import { HomeLayout } from 'fumadocs-ui/layouts/home';
|
|
import { baseOptions } from '@/lib/layout.shared';
|
|
import { isLanguage, i18n } from '@/lib/i18n';
|
|
|
|
export default async function Layout({ params, children }: LayoutProps<'/[lang]'>) {
|
|
const { lang } = await params;
|
|
const base = baseOptions(isLanguage(lang) ? lang : i18n.defaultLanguage);
|
|
|
|
return (
|
|
<HomeLayout
|
|
{...base}
|
|
nav={{ ...base.nav, transparentMode: 'always' }}
|
|
className="home-fullbleed-nav"
|
|
>
|
|
{children}
|
|
</HomeLayout>
|
|
);
|
|
}
|