import I18nServer from './components/i18n-server' import BrowerInitor from './components/browser-initor' import SentryInitor from './components/sentry-initor' import { getLocaleOnServer } from '@/i18n/server' import './styles/globals.css' import './styles/markdown.scss' export const metadata = { title: 'Dify', viewport: 'width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover, user-scalable=no', } const LocaleLayout = ({ children, }: { children: React.ReactNode }) => { const locale = getLocaleOnServer() return ( {/* @ts-expect-error Async Server Component */} {children} ) } export default LocaleLayout