import { Injectable } from '@angular/core' ; import { TranslateService } from '@ngx-translate/core' ; import { NotaddLocale } from '@notadd/types' ; @ Injectable ( { providedIn : 'root' } ) export class NotaddTranslationService { constructor ( private translateService ) { } param locales setTranslation ( locales ) { locales . map ( locale => { this . translateService . setTranslation ( locale . lang , locale . translations , true ) ; } ) ; } }