-
-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translations not loaded on first start #1178
Comments
I found a workaround that works for me, but it's a bit hacky. I created a class Labels that holds the labels from the JSON files. In my app.component.ts I set the translations explicitly with the values from this class when I configure the translate service.
This works on the first start, but now I have to maintain two versions of the translations as I want to switch back to the official way with http-loader when the bug is fixed. |
@fortunella I can reproduce this issue in a non-Ionic environment. Occurs mostly on initial page load. Translations load after reloading window, I guess because *.js bundles are already in cache. |
Is there an update or workaround for this issue? |
any update on this one? |
Any updates here ? |
any update? |
Any updates? Is this ever getting fixed? |
still not fixed |
Current behavior
I use ngx-translate in an Ionic 4 app. When I deploy the app to a device on the first start the translations are not loaded. If I exit the app and restart it, everthing works fine.
Expected behavior
Translations are loaded on first start of the app.
Minimal reproduction of the problem with instructions
Environment
In my app.component.ts I initialize ngx-translate as described in the docs:
It seems that the use() method does not work correctly on the first start. The output inside the subscribe does not appear on the first start, but one the second.
Maybe its related to #1162 or #1175
The text was updated successfully, but these errors were encountered: