Currently utilizing angular translate with the static files loader for implementing multiple languages in my project. However, I've encountered a problem where the loading of language files sometimes takes longer than loading the actual view itself, leading to a partially translated UI. This results in some parts of the screen remaining untranslated while others are.
I have tried various solutions without success:
- Enabling forceAsyncRefresh(true) during configuration of $translateProvider
- Implementing a $rootScope watch in the login controller and refreshing the translation on translateLoadedSuccess event
- Updating to the latest version of angular translate
The majority of translations are done in the view like this: {{ ::'My Translation Key' | translate }}
What am I missing in resolving this issue? Should I manually load the language files and set them during early load times? If so, how should I configure the setup?
My environment includes Angular 1.5.0 and Angular Translate 2.11.1.
Thanks in advance!