1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-22 15:55:08 +00:00

BUGFIX rebuild languge-bundle when userLocales changes

This commit is contained in:
thomasrosen 2021-01-23 20:48:55 +01:00
parent 0a9bd18338
commit 5a4a1b1372

View file

@ -61,7 +61,7 @@ export function AppLocalizationProvider({ userLocales, children }){
setBundles( new ReactLocalization(generateBundles()) ) setBundles( new ReactLocalization(generateBundles()) )
} }
loadBundles() loadBundles()
}, []) }, [userLocales])
if (!bundles) { if (!bundles) {
// Show a loader. // Show a loader.