import { ChangeDetectorRef , Directive , ElementRef , Input } from '@angular/core' ; import { TranslateDirective } from '@ngx-translate/core' ; import { OverwolfService } from '../services/overwolf.service' ; @ Directive ( { selector : '[owTranslate]' , } ) export class OwTranslateDirective extends TranslateDirective { @ Input ( ) set owTranslate ( key ) { super . translate = key ; } constructor ( ow , element , _ref ) { super ( ow . getMainWindow ( ) . translateService , element , _ref ) ; } }