| | |
| | | import { DateService } from '@business/services/util/date.service'; |
| | | import { BrowserModule } from '@angular/platform-browser'; |
| | | import { NgModule, LOCALE_ID, APP_INITIALIZER, Injector } from '@angular/core'; |
| | | import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
| | | import { TranslateModule, TranslateLoader, TranslateService } from '@ngx-translate/core'; |
| | | import { TranslateHttpLoader } from '@ngx-translate/http-loader'; |
| | | import { HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http'; |
| | | |
| | | import { CoreModule } from './core/core.module'; |
| | | import { SharedModule } from './shared/shared.module'; |
| | | import { AppComponent } from './app.component'; |
| | |
| | | |
| | | import { registerLocaleData } from '@angular/common'; |
| | | import localeZhHans from '@angular/common/locales/zh-Hans'; |
| | | |
| | | registerLocaleData(localeZhHans); |
| | | |
| | | // AoT requires an exported function for factories |
| | |
| | | { provide: HTTP_INTERCEPTORS, useClass: SimpleInterceptor, multi: true}, |
| | | { provide: HTTP_INTERCEPTORS, useClass: DefaultInterceptor, multi: true}, |
| | | { provide: ALAIN_I18N_TOKEN, useClass: I18NService, multi: false }, |
| | | DateService, |
| | | StartupService, |
| | | { |
| | | provide: APP_INITIALIZER, |