You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a sub-module is imported into another module (lazy loaded?) with it's own TRANSLOCO_SCOPE, the sub-modules TRANSLOCO_SCOPE does not load the translation.
Expected behavior
Expectation is that each Module can have it's own scope and will load properly whether the sub-module is loaded directly or lazily.
Minimal reproduction of the problem with instructions
Navigate first to this link: https://ngneat-transloco-ho6spo.stackblitz.io/lazy
Note that h-alias.TITLE is not translated.
Navigate to the HOME link and note that h-alias.TITLE is now translated (module w/ separate scope is loaded in App Module).
Now navigate back to Lazy and notice that h-alias.TITLE is properly translated.
Current behavior
When a sub-module is imported into another module (lazy loaded?) with it's own TRANSLOCO_SCOPE, the sub-modules TRANSLOCO_SCOPE does not load the translation.
Expected behavior
Expectation is that each Module can have it's own scope and will load properly whether the sub-module is loaded directly or lazily.
Minimal reproduction of the problem with instructions
Navigate first to this link: https://ngneat-transloco-ho6spo.stackblitz.io/lazy
Note that h-alias.TITLE is not translated.
Navigate to the HOME link and note that h-alias.TITLE is now translated (module w/ separate scope is loaded in App Module).
Now navigate back to Lazy and notice that h-alias.TITLE is properly translated.
Stackblitz code: https://stackblitz.com/edit/ngneat-transloco-ho6spo?devtoolsheight=33&file=src/app/helper/myhelper/myhelper.component.html
Browser:
Additional context
Add any other context about the problem here.
Contribution
I would like to make a pull request for this feature:
[ ] Yes! 🚀
[x ] Maybe next time
The text was updated successfully, but these errors were encountered: