Author Date Email Last Last import { NgModule } from '@angular/core' ; import { TranslateModule } from '@ngx-translate/core' ; import { HomeI18nService } from './home-i18n.service' ; import { locale as english } from './langues/home.en' ; import { locale as french } from './langues/home.fr' ; @ NgModule ( { imports : [ TranslateModule . forChild ( ) ] , providers : [ HomeI18nService ] , exports : [ TranslateModule ] } ) export class HomeI18nModule { constructor ( private translationLoader ) { this . translationLoader . loadTranslations ( english , french ) ; } }