@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
10 lines (8 loc) • 419 B
text/typescript
import { translation } from '@/server/translation';
import { DynamicLayoutProps } from '@/types/next';
import { RouteVariants } from '@/utils/server/routeVariants';
export const parsePageMetaProps = async (props: DynamicLayoutProps) => {
const { locale: hl, isMobile } = await RouteVariants.getVariantsFromProps(props);
const { t, locale } = await translation('metadata', hl);
return { isMobile, locale, t };
};