ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.53k stars 580 forks source link

Updating page meta data on language change #911

Open eftas-gka opened 6 years ago

eftas-gka commented 6 years ago

Already searched existing issues for similar topics but didn't find anything helpful. This might also be not entirely ngx-translate-related, so please excuse me being slightly offtopic.

I'm using ngx-translate for a multi language ionic-pwa. The page is created with the default language set in the html tags lang attribute. When the language is changed by the user (or initially by auto detecting browser language), the lang attribute is updated: document.documentElement.lang = lang;. This does not seem to have an effect on tools like chrome's translation for foreign languages (I guess because the page's language is only detected once on load!?). Is there anything I can do about that, preferably without reloading the page?

mpscheidt commented 4 years ago

This is indeed a problem with Chrome translation. No updates on this at all?