Background
We are developing an app with Angular 8.2. This question is not related to AngularJs.
Problem
I have read the Angular localization document here: https://angular.io/guide/i18n
But it seems that localization was done in the building process. After the app is built, it can't be changed. So how can we build an Angular app which supports language switching without the internet?
CDN
Our app is deployed behind CDN. The CDN servers reverse-proxy the HTML, JavaScript and CSS files and will cache all files passed. The server-side app language switching is not available.
Electron edition
And we have provided a client-side app based on the electron. We need to deliver the app once and the user can switch between different languages without the internet. But I have found no solution to it.
Domain name
You may mention that we can switch language via the switching the domain. But for CORS reason, our client-side app domain name is limited and can not be switched. So only one domain name is available.
Google Play Store
And we have built and published our app to the Google Play Store via TWA. The domain was registered with the app. Switching domains also cause downloading the app from Store again.
Addition info
And the source code of the app is here: https://github.com/AiursoftWeb/Kahla.App
Just for possible additional info. Don't have to check it for answering this question.