import { Injectable } from '@angular/core' ; import { Observable , Observer } from 'rxjs' ; @ Injectable ( { providedIn : 'root' } ) export class ThyTranslate { instant ( key , interpolateParams ? ) { return key ; } get ( key , interpolateParams ? ) { return new Observable ( ( observer ) => { observer . next ( key ) ; } ) ; } }