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