fix the forced re-render on locale change

This commit is contained in:
Moody Salem 2021-05-29 00:07:42 -05:00
parent cfadd3b165
commit 4eb5c3cac8
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -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>
)
}