We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56f66bd + d99ca97 commit 955307dCopy full SHA for 955307d
src/hooks/useTranslation/useTranslation.ts
@@ -28,7 +28,7 @@ export function useTranslation(namespace?: TranslationNamespace): TranslatorType
28
changeLanguage: i18n.changeLanguage.bind(i18n),
29
t
30
};
31
- }, []);
+ }, [resolvedLanguage]);
32
33
useEffect(() => {
34
i18n.addEventListener('languageChange', setResolvedLanguage);
0 commit comments