import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { EffectsModule } from '@ngrx/effects'; import { StoreModule } from '@ngrx/store'; import { TranslateModule } from '@ngx-translate/core'; import { YapCoreModule, YapIconModule, YapTranslateService } from '@onepoint-yap/dashboard'; import { YapPipelineEditorComponent } from './components/pipeline-editor/pipeline-editor.component'; import { enTranslations } from './i18n/en.translations'; import { frTranslations } from './i18n/fr.translations'; import { PipelineEffects } from './store/pipeline.effects'; import { pipelineFeatureKey, pipelineReducer } from './store/pipeline.reducer'; import { YapPipelineCssComponent } from './style/css.component'; const components = [YapPipelineEditorComponent, YapPipelineCssComponent]; @NgModule({ imports: [ CommonModule, YapCoreModule, TranslateModule.forChild(), StoreModule.forFeature(pipelineFeatureKey, pipelineReducer), EffectsModule.forFeature([PipelineEffects]), YapIconModule ], declarations: [...components], exports: [...components] }) export class YapPipelineModule { constructor(private yapTranslateService: YapTranslateService) { this.yapTranslateService.addLangObject('fr', 'pipeline', frTranslations); this.yapTranslateService.addLangObject('en', 'pipeline', enTranslations); } }