import { HttpClient } from '@angular/common/http' ; import { TranslateHttpLoader } from '@ngx-translate/http-loader' ; import { ContentLoaderService } from './services/content-loader/content-loader.service' ; export function httpLoaderFactory ( http ) { return new TranslateHttpLoader ( http , './assets/i18n/' , `.json?_t=${ new Date ( ) . getTime ( ) }` ) ; } export function configLoader ( contentLoaderService ) { return ( ) => contentLoaderService . fetchContent ( ) ; }