Merge branch 'dev' of https://git.jetbrains.space/nalpari/q-cast-iii/qcast-front into dev
This commit is contained in:
commit
13b57dae23
@ -2,15 +2,19 @@
|
||||
|
||||
import { useCurrentLocale } from '@/locales/client'
|
||||
import { LocaleProvider } from './LocaleProvider'
|
||||
import ServerError from './error'
|
||||
import { ErrorBoundary } from 'next/dist/client/components/error-boundary'
|
||||
|
||||
export default function LocaleLayout({ children }) {
|
||||
const locale = useCurrentLocale()
|
||||
|
||||
return (
|
||||
<>
|
||||
<LocaleProvider locale={locale} fallback={''}>
|
||||
{children}
|
||||
</LocaleProvider>
|
||||
<ErrorBoundary fallback={<ServerError />}>
|
||||
<LocaleProvider locale={locale} fallback={<ServerError />}>
|
||||
{children}
|
||||
</LocaleProvider>
|
||||
</ErrorBoundary>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user