Dependency updates

This commit is contained in:
itzMiney committed 2025-06-10 12:06:03 +02:00
1 parent 2f686cf556
commit c52f9d6cc0
4 files changed
+535 -323

No files matched your search

+1 -16
View File
@@ -4,15 +4,9 @@ import {provideRouter} from '@angular/router';
import {routes} from './app.routes';
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
import {provideClientHydration, withEventReplay} from '@angular/platform-browser';
import {HttpClient, provideHttpClient} from '@angular/common/http';
import {provideHttpClient} from '@angular/common/http';
import {AuthService} from './shared/services/auth.service';
import {AuthInterceptor} from './auth.interceptor';
import {provideTranslate, TranslateLoader} from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
export function HttpLoaderFactory(http: HttpClient): TranslateLoader {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
export const appConfig: ApplicationConfig = {
providers: [
@@ -23,14 +17,5 @@ export const appConfig: ApplicationConfig = {
provideHttpClient(),
AuthService,
AuthInterceptor,
provideTranslate({
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [HttpClient]
},
defaultLanguage: 'en',
}),
]
};