import { ChangeDetectorRef , Injectable , Pipe , PipeTransform } from '@angular/core' ; import { TranslatePipe } from '@ngx-translate/core' ; import { OverwolfService } from '../services/overwolf.service' ; @ Injectable ( ) @ Pipe ( { name : 'owTranslate' , pure : false , } ) export class OwTranslatePipe extends TranslatePipe implements PipeTransform { constructor ( ow , _ref ) { super ( ow . getMainWindow ( ) . translateService , _ref ) ; } }