I have an internationalized angular web application with angular-i18n. With this system, angular creates a dedicated application for each language.
To provide multi-language on the web server, I have one url per language (mywebsite.com/en, mywebsite.com/de, mywebsite.com/fr, etc.), each url pointing to the application corresponding to the language.
The application can be installed on the device (with angular-pwa).
The problem is as follows:
When the user changes language, he is redirected to another url (for example from mywebsite.com/en to mywebsite.com/fr). In the case of the installed application, if he leaves it and restarts it, the language change does not persist. There is also another problem: not being on the same url as the installed application causes the browser bar to be displayed, which is not desirable in an installed pwa.
For the change to persist, the application would have to change its target url or reinstall itself when the user changes language. But I don't find anywhere how to do that...
How to solve this problem?
--
Edit:
I just find this question: Apply changes to an installed PWA (different base URL)
My problem is very similar.