Ng2-translate in Ionic 3 IonicPage

I’m having some problems to use ng2-translate using the new deep links. It throws me an error that the pipe translate is not found.
So I included all the configurations in the page module, but that would imply a huge change and configure every exsiting and new page, which seems messy.
Can some one point me in the right direction?
btw Congratulations, nice changes.

Have you try to update the library?

ng2-translate is now called ngx-translate. The usage also may have change, see:

if you load the json with http, you will need the ngx-http-loader too:

Great, that worked, thanks.
Using the new version it was easy to import in each page module using TranslateModule.forChild()

1 Like