diff --git a/src/l10n.js b/src/l10n.js index 090892a..f9d87da 100644 --- a/src/l10n.js +++ b/src/l10n.js @@ -68,7 +68,7 @@ export function AppLocalizationProvider({ userLocales, children, onLocaleChange setBundles( new ReactLocalization(generateBundles()) ) } loadBundles() - }, [userLocales]) + }, [userLocales, onLocaleChange]) if (!bundles) { // Show a loader.