import { BrowserModule } from '@angular/platform-browser' ; import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ; import { NgModule } from '@angular/core' ; import { RouterModule } from '@angular/router' ; import { TranslateModule , TranslateLoader } from '@ngx-translate/core' ; import { ContentModule } from '@alfresco/adf-content-services' ; import { ProcessServicesCloudModule } from '@alfresco/adf-process-services-cloud' ; import { CoreModule , TRANSLATION_PROVIDER , TranslateLoaderService , CoreAutomationService } from '@alfresco/adf-core' ; import { StencilsModule } from './stencils.module' ; import { AppComponent } from './app.component' ; import { HomeComponent } from './home/home.component' ; import { LoginComponent } from './login/login.component' ; import { AppsComponent } from './apps/apps.component' ; import { TasksComponent } from './tasks/tasks.component' ; import { TaskDetailsComponent } from './task-details/task-details.component' ; import { StartProcessComponent } from './start-process/start-process.component' ; import { FileViewComponent } from './file-view/file-view.component' ; import { BlobViewComponent } from './file-view/blob-view.component' ; import { PreviewService } from './services/preview.service' ; import { appRoutes } from './app.routes' ; import { AppLayoutComponent } from './app-layout/app-layout.component' ; import { registerLocaleData } from '@angular/common' ; import localeFr from '@angular/common/locales/fr' ; import localeDe from '@angular/common/locales/de' ; import localeIt from '@angular/common/locales/it' ; import localeEs from '@angular/common/locales/es' ; import localeJa from '@angular/common/locales/ja' ; import localeNl from '@angular/common/locales/nl' ; import localePt from '@angular/common/locales/pt' ; import localeNb from '@angular/common/locales/nb' ; import localeRu from '@angular/common/locales/ru' ; import localeCh from '@angular/common/locales/zh' ; import localeAr from '@angular/common/locales/ar' ; import localeCs from '@angular/common/locales/cs' ; import localePl from '@angular/common/locales/pl' ; import localeFi from '@angular/common/locales/fi' ; import localeDa from '@angular/common/locales/da' ; import localeSv from '@angular/common/locales/sv' ; registerLocaleData ( localeFr ) ; registerLocaleData ( localeDe ) ; registerLocaleData ( localeIt ) ; registerLocaleData ( localeEs ) ; registerLocaleData ( localeJa ) ; registerLocaleData ( localeNl ) ; registerLocaleData ( localePt ) ; registerLocaleData ( localeNb ) ; registerLocaleData ( localeRu ) ; registerLocaleData ( localeCh ) ; registerLocaleData ( localeAr ) ; registerLocaleData ( localeCs ) ; registerLocaleData ( localePl ) ; registerLocaleData ( localeFi ) ; registerLocaleData ( localeDa ) ; registerLocaleData ( localeSv ) ; @ NgModule ( { imports : [ BrowserModule , BrowserAnimationsModule , RouterModule . forRoot ( appRoutes ) , CoreModule . forRoot ( ) , ContentModule . forRoot ( ) , ProcessServicesCloudModule . forRoot ( ) , TranslateModule . forRoot ( { loader : { provide : TranslateLoader , useClass : TranslateLoaderService } } ) , StencilsModule ] , declarations : [ AppComponent , AppsComponent , HomeComponent , LoginComponent , TasksComponent , TaskDetailsComponent , StartProcessComponent , AppLayoutComponent , BlobViewComponent , FileViewComponent ] , providers : [ PreviewService , { provide : TRANSLATION_PROVIDER , multi : true , useValue : { name : 'app' , source : 'resources' } } ] , bootstrap : [ AppComponent ] } ) export class AppModule { constructor ( automationService ) { automationService . setup ( ) ; } }