import { Injectable } from '@angular/core' ; import { TranslateService } from '@ngx-translate/core' ; import { Observable , of } from 'rxjs' ; @ Injectable ( ) export class TranslateServiceMock extends TranslateService { constructor ( ) { super ( null , null , null , null , null , null , true , null , null ) ; } get ( key ) { return of ( key ) ; } instant ( key ) { return key ; } }