Closed ihor-zinchenko closed 4 years ago
Hi,
APP_INITIALIZER
?For the previous version of the library, I wrote a simple guide: https://github.com/robisim74/angular-l10n/blob/angular_v8/docs/quick-start.md#server-side-rendering-ssr
@robisim74
{
provide: APP_INITIALIZER,
useFactory: initL10n,
deps: [L10nLoader],
multi: true
},
But now I have a new problem. The server always returns only first language for the user, if I go to example.com/en, I've got English version, but if I go to example.com/ru after that, I've got English version to
I'll try your example maybe it's fixing my issue, thx!
Solved by using cookie on the server and client
Hi! I'm using angular universal and it build HTML for my app but before translations loading I see
How I can load translations immediately and after that build HTML?
Or for angular universal I should use another way to connect translations?