You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
import { createTranslateLoader } from './app/app.module';
|
|
import { importProvidersFrom } from '@angular/core';
|
|
import { AppComponent } from './app/app.component';
|
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
import {
|
|
withInterceptorsFromDi,
|
|
provideHttpClient,
|
|
HttpClient,
|
|
} from '@angular/common/http';
|
|
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
import { BrowserModule, bootstrapApplication } from '@angular/platform-browser';
|
|
import { TranslationService } from './app/services/translation.service';
|
|
import { provideRouter, withComponentInputBinding } from '@angular/router';
|
|
import { routes } from './app/app.routes';
|
|
|
|
bootstrapApplication(AppComponent, {
|
|
providers: [
|
|
provideRouter(routes, withComponentInputBinding()),
|
|
importProvidersFrom(
|
|
BrowserModule,
|
|
ReactiveFormsModule,
|
|
FormsModule,
|
|
TranslateModule.forRoot({
|
|
loader: {
|
|
provide: TranslateLoader,
|
|
useFactory: createTranslateLoader,
|
|
deps: [HttpClient],
|
|
},
|
|
defaultLanguage: 'fr',
|
|
})
|
|
),
|
|
TranslationService,
|
|
provideHttpClient(withInterceptorsFromDi()),
|
|
],
|
|
}).catch(console.error);
|