Open tommueller opened 7 years ago
@tommueller I know it's been a while but have you managed to make it work? I'm kinda in the same boat ATM and can't find any working solution anywhere.
@jo-russ Nope, sorry. We actually migrated to transloco in the meantime.
I'm submitting a ... (check one with "x")
Current behavior I cannot figure out how to use ngx-translate throughout a main-module and several child-modules. I have a shared library that is included into the main-project, but I cannot manage to get them both to work with the same instance of ngx-translate. My child-module is in a separate library, installed via npm and then imported into the project.
Expected/desired behavior Have a working plunkr example where I can see how I have to declare the modules.
Reproduction of the problem There is a plunkr here, that kind of works, but still does not do the translation: https://plnkr.co/edit/LVmIuI1Xw9vFn0IuC2jW?p=preview
What I've tried I basically managed to get every case working, BUT the one I need:
Right now I get
No provider for TranslateService
and this is my setup:shared.module:
app.module:
Please tell us about your environment:
ngx-translate version: 7.2.0
Angular version: 4.3.5
Browser: [all ]