title: Angular ngx-translate inside service
body: <p>I am using ngx-translate and ngx-translate/http-loader for translating my ionic/angular project. I have this code inside app.module.ts imports:</p>
  
  <pre><code>TranslateModule.forRoot({
    loader: {
      provide: TranslateLoader,
      useFactory: (createTranslateLoader),
      deps: [HttpBackend]
    }
  })
  </code></pre>
  
  <p>and this loader function in the same file: </p>
  
  <pre><code>export function createTranslateLoader(handler: HttpBackend) {
       const http = new HttpClient(handler);
       return new TranslateHttpLoader(http, './assets/i18n/', '.json');
  }
  </code></pre>
  
  <p>This gives me opportunity to use this kind of translation syntac inside component's html : <code>{{ 'TEXT' | translate }}</code> , I also can write something like that to translate inside component's ts file :  <code>var text = this.translateService.instant("TEXT");</code>  </p>
  
  <p>Now I want to use <code>translateService.instant</code> inside service generated by command <code>"ng generate s"</code> I tried it but it doesn't work, it returns <code>"TEXT"</code> itself. So what is the problem? </p>