I'm currently working on an Angular 20 project with Server-Side Rendering and the ngx-translate library.
I've already read through the ngx-translate docs and found this about fixing UI glitches when loading translations, but I'm wondering if anyone has found a better solution than making a loading screen or loading blank text initially using a handler.
I feel like I may be close to a solution using provideAppInitializer in app.config.ts as stated in the Angular docs:
If the function returns a Promise or an Observable, initialization does not complete until the Promise is resolved or the Observable is completed.
We can creating a Promise to wait and resolve translate.use, but the issue is that getBrowserLang() returns undefined on the server, and I get errors in places that call .stream with _().
Does anyone have a solution or do I have to give in with using a loading screen / loading blank text?