fix: i18n runtime error (#1376)

This commit is contained in:
zxhlyh 2023-10-18 16:00:56 +08:00 • committed by GitHub
commit d14f15863d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 11 deletions

View file

@ -4,12 +4,10 @@ import { ToastProvider } from './base/toast'
import { getDictionary, getLocaleOnServer } from '@/i18n/server'
export type II18NServerProps = {
// locale: Locale
children: React.ReactNode
}
const I18NServer = async ({
// locale,
children,
}: II18NServerProps) => {
const locale = getLocaleOnServer()