Changed everything to use translate pipeline instead of hardcoded text and added german translations

This commit is contained in:
itzMiney committed 2025-06-11 01:08:36 +02:00
1 parent 5c7f0074f3
commit cfa971f856
33 files changed
+758 -321

No files matched your search

+17 -2
View File
@@ -1,12 +1,18 @@
import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
import {ApplicationConfig, importProvidersFrom, provideZoneChangeDetection} from '@angular/core';
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 {provideHttpClient} from '@angular/common/http';
import {HttpClient, provideHttpClient} from '@angular/common/http';
import {AuthService} from './shared/services/auth.service';
import {AuthInterceptor} from './auth.interceptor';
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
import {TranslateLoader, TranslateModule} from '@ngx-translate/core';
export function createTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, '/i18n/', '.json');
}
export const appConfig: ApplicationConfig = {
providers: [
@@ -17,5 +23,14 @@ export const appConfig: ApplicationConfig = {
provideHttpClient(),
AuthService,
AuthInterceptor,
importProvidersFrom(
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: createTranslateLoader,
deps: [HttpClient]
}
})
),
]
};