fix the forced re-render on locale change
This commit is contained in:
parent
cfadd3b165
commit
4eb5c3cac8
@ -21,5 +21,9 @@ export function LanguageProvider({ children }: { children: ReactNode }) {
|
||||
})
|
||||
}, [locale])
|
||||
|
||||
return <I18nProvider i18n={i18n}>{children}</I18nProvider>
|
||||
return (
|
||||
<I18nProvider forceRenderOnLocaleChange={false} i18n={i18n}>
|
||||
{children}
|
||||
</I18nProvider>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user