Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid calling changeLanguage if it's the same as locale (#201)
Right now if locale change the `changeLanguage` function is called, this function triggers a re-render of every component using `useTranslation`. Instead we can check if `i18n.language` is different to the locale and only then call `changeLanguage`.
- Loading branch information