Romanchuk / angular-i18next

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

Use Angular i18next in libs with nx workspace #120

Closed mauschepano closed 5 months ago

mauschepano commented 5 months ago

Hi, I am new to i18next and your package - so sorry if this question is somehow obvious to solve or something. :)

I am currently trying to set up angular i18next in conjunction with NX Workspaces monorepo. When I include i18next directly in the app, translations work in app.component.html but not in child components. Including it within the libs leads to a NullInjectorError.

I want to translate the text in the fly - without reloading. As mentioned, this works well in app.component.html but not anymore in the children.

Could anyone help me with the setup? Or does anyone have a guideline?

Thanks in advance!