-
-
Notifications
You must be signed in to change notification settings - Fork 592
Description
Hi,
not sure if its just me doing something wrong, I have a module federated application that I worked with and recently updated to V17 to test things out.
out main/host application uses a custom loader and missing translation handler which is provided like so:
provideTranslateService({
missingTranslationHandler: provideMissingTranslationHandler(MissingTranslationHandler),
loader: provideTranslateLoader(HostTranslationLoader)
}),
Within our remote application that is lazy loaded later I have the following provided:
provideChildTranslateService({
extend: true,
missingTranslationHandler: provideMissingTranslationHandler(MissingTranslationHandler),
loader: provideTranslateLoader(RemoteTranslationLoader)
})
The loader for the remote is slightly different in order to load the translation assets from a custom path that is hosted separatly.
The the host application first loads the host translation loader gets to work and loads all of the translations for the host no problem.
when i navigate to the remote application I can see that the child translate service is instantiated and has the correct lang an such set, however, this does not trigger the initial loading of the remote translations. This is also the same when the application changes language. The host loader kicks in and gets the new translations but the remote one does nothing...
Am i missing an initial bootstrap / event registration or do I need to do this manually in each remote to work?
Edit:
I can also add if in the constructor/init function of my remote / lazy loaded application and call this.translateService.use('en') I can see that the RemoteTranslationLoader does load the translations but it feels odd that I have to manually trigger this...
Minimal reproduction of the problem with instructions
- Open the test-app
- Open your chrome devTool
- Go to the extended page
- Change the lang
- Only the extended loader will be fired