-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Using forceLanguage does not load language automatically #1389
Comments
@elpeq Please provide always a working demo with your issue. I've made a demo, but cannot see any problem with this: http://plnkr.co/edit/iiBTCvK3t2qwUeTZiamd?p=preview |
@elpeq Is a language failing to load, and then you're using forceLanguage? I handled the rejection from the static file loader and that let me continue.
|
Hello @knalli |
Alright: the language will be not loaded automatically. |
All service, directive and filter supports `forceLanguage` supporting an override language selector for the specified translation id. Until now, the translation has not been resolved correctly if the language's translations has not been used yet. Fixes #1389
Fixed with 14bc956 |
Forcing a language is now working in version 2.11.0 but it produces errors when trying to switch to another language afterwards:
You should be able to reproduce the issue if you click in any language button on the updated demo Plunk (see console for stack trace): FYI, angular-translate determines my preferred language as French, which is correct. |
In fact after some more testing, it looks like forcing a translation only works properly when using the
Unless there is something wrong in the demo, this issue should be reopened again. |
We don't reopen.. the workflow is always a new issue. => #1471 |
Hello,
tested in angular-translate 2.9
forceLanguage doesn't work if StaticFilesLoader is used:
$translateProvider.useStaticFilesLoader
Yann
The text was updated successfully, but these errors were encountered: