15 lines
384 B
TypeScript
15 lines
384 B
TypeScript
|
|
import { Locale } from '@/lib/i18n';
|
|||
|
|
|
|||
|
|
interface LocaleLayoutProps {
|
|||
|
|
children: React.ReactNode;
|
|||
|
|
params: {
|
|||
|
|
locale: Locale;
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
export default function LocaleLayout({ children, params }: LocaleLayoutProps) {
|
|||
|
|
// 在动态路由布局中,我们只需要返回children
|
|||
|
|
// 语言属性通过generateMetadata在页面级别设置
|
|||
|
|
return <>{children}</>;
|
|||
|
|
}
|