ocombe / ocLazyLoad

Lazy load modules & components in AngularJS
https://oclazyload.readme.io
MIT License
2.63k stars 510 forks source link

ocLazyLoad.load doesn't load modules #358

Open Vengefull opened 7 years ago

Vengefull commented 7 years ago

Hello, So what i am doing is this: I want to load a new locale file for my app, after i check the preffered languages from the user's browser. That's ok, ocLazyLoad finds the file -> "loads" it but in the end the locale is not overrided (its still en-us) If you are not familiar to the angular i18n locales they are just files (.js) for each lang +/- location (en-us) Every one of the files contains a module ngLocale (which i must override in some point of the application). But unfortunately it doesnt override the hardcoded locale -> en-us