# Problems with ng2-translate and Ionic V3 after upgrading

**URL:** <https://forum.ionicframework.com/t/problems-with-ng2-translate-and-ionic-v3-after-upgrading/89391>\
**Category:** ionic-v3\
**Created:** [May 8, 2017, 2:22pm UTC](https://forum.ionicframework.com/t/problems-with-ng2-translate-and-ionic-v3-after-upgrading/89391 "2017-05-08T14:22:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregg](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@gregg](https://forum.ionicframework.com/u/gregg)\
**Post date:** [May 8, 2017, 2:22pm UTC](https://forum.ionicframework.com/t/problems-with-ng2-translate-and-ionic-v3-after-upgrading/89391/1 "2017-05-08T14:22:17Z")

</div>

Hi everyone,

I got a problem with the ng2-translate module in combination with the new Ionic V3 release.

In previous V2 version, I did implement it like this in app.module.ts

```auto
...
import {TranslateModule, TranslateStaticLoader} from "ng2-translate/ng2-translate";
import {TranslateLoader} from "ng2-translate";
...
export function translateLoaderFactory(http: any) {
   return new TranslateStaticLoader(http, './assets/i18n', '.json');
}
...
@NgModule({
  declarations: [ 
    ...
  ],
  imports: [
    ...,
    TranslateModule.forRoot({
      provide: TranslateLoader,
      useFactory: translateLoaderFactory,
      deps: [Http] //Changed to "HttpModule" in V3 version
    })
  ],
...
})
....

```

Accessing the translate functions in TS templates or HTML templates works fine that way.

When upgrading to V3, I got an error message telling me “this.http.get is not a function”. After removing all http queries from my app I realized that not the custom queries are the problem but ng2-translate seems to load the required translation file via http.get and this seems not to be compatible with the changes in V3, e.g. the HttpModule.

Any hints what is going wrong or any alternatives how to implement ng2-translate?

Regards  
Greg

---

<div class="post-metadata">

**Author:** ![LoLStats](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lolstats/32/103165_2.png) [@LoLStats](https://forum.ionicframework.com/u/LoLStats)\
**Post date:** [May 8, 2017, 2:35pm UTC](https://forum.ionicframework.com/t/problems-with-ng2-translate-and-ionic-v3-after-upgrading/89391/2 "2017-05-08T14:35:19Z")

</div>

Check out the updated docs: [https://ionicframework.com/docs/resources/ng2-translate/](https://ionicframework.com/docs/resources/ng2-translate/)

---

<div class="post-metadata">

**Author:** ![gregg](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@gregg](https://forum.ionicframework.com/u/gregg)\
**Post date:** [May 8, 2017, 3:02pm UTC](https://forum.ionicframework.com/t/problems-with-ng2-translate-and-ionic-v3-after-upgrading/89391/3 "2017-05-08T15:02:26Z")

</div>

Thanks a lot 🙂

Why did stupid google did not list that page? 😭
