import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import { Utils } from './utils'; import { UserConfigService } from './user-config.service'; @Injectable({ providedIn: 'root', }) export class I18NService { private translation = new BehaviorSubject({}); cast = this.translation.asObservable(); constructor(private userconfig: UserConfigService) {} updateHeaderTranslation() { this.translation.next(Utils.getTranslation()); } }