fix: i18n runtime error (#1376)

This commit is contained in:
zxhlyh
2023-10-18 16:00:56 +08:00
committed by GitHub
parent 7c9b585a47
commit d14f15863d
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()