Romanchuk / angular-i18next

angular v10+ integration with i18next v19.4+
MIT License
131 stars 33 forks source link

Update I18NextEagerPipe.ts to trigger change detection inside NgZone #110

Closed JacobF7 closed 1 year ago

JacobF7 commented 1 year ago

For microfrontend architectures (e.g. Single Spa ), it will be necessary to detect language changes across all applications that are started on screen (e.g. Side Menu App and Main Content App 2). However, in order to do so in these types of architectures, the change detection needs to be triggered by also notifying the NgZone of the application (refer to here https://github.com/single-spa/single-spa-angular/issues/360). As an example, consider detect ing language change triggered from Side Menu App inside Main Content App

aseychell commented 1 year ago

We've been encountering the same issue here! Would be great if this gets merged soon