### File

`projects/commons/src/lib/core/translates/translate-loader.module.ts`

    import { NgModule } from '@angular/core';
    import { AngularFireModule } from '@angular/fire';
    import { AngularFirestore, AngularFirestoreModule } from '@angular/fire/firestore';
    import { TranslateLoader, TranslateModule as NgxTranslateModule } from '@ngx-translate/core';

    import { TranslateFactory } from './factories';
    import { environment } from '../../../environments/environment';

    @NgModule({
        imports: [
            AngularFirestoreModule,

            AngularFireModule.initializeApp(environment.firebase),
            NgxTranslateModule.forRoot({
                loader: {
                    provide: TranslateLoader,
                    useFactory: TranslateFactory,
                    deps: [
                        AngularFirestore,
                    ],
                },
            }),
        ],
        exports: [
            NgxTranslateModule,
        ],
    })

    export class TranslateLoaderModule {}

# result-matching ""

# No results matching ""