ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.51k stars 577 forks source link

Page only displays labels but no values #1009

Open Niore opened 5 years ago

Niore commented 5 years ago

Im currently working on a touch-device for traindrivers. On the device we display a webpage on a chromium browser. Now i have the issue that sometimes the browser displays only the labels of the translations but not the values. after a refresh everything works as it should. The problem is now i dont know how to reproduce this issue and i also dont have access on the console of the browser because if i would like to connect to the console i have to open a port which triggers a reload of the browser and after that everything is correct again. So do you guys know why is only displays the labels and not the translated value? I tried it locally but i can not reproduce it.

There are no compilation errors or problems with the file

BADF00D commented 5 years ago

The translation key is shown, when no translation for that key could be found in current and default language. When all translation are missing, maybe they are not loaded yet. You can open your debugging tools (F12 in Chromium) an look in the network tab if the requested translations files are still downloading. On my machine, when opening debugging tools (including console) does not trigger a reload.

Niore commented 5 years ago

i included now the translatons into a service class to be sure that if the minified main.js is delievered that my translations in the service are also available. now i dont use the json files anymore

codecoster commented 4 years ago

I have a Situation in which for some parts of the page, the translations are shown, but for other parts of that same page, no translations are show (not even the translation-key). There are also no Errors logged to the console. Additional Info: