Differenzansicht 16b-l10n
im Vergleich zu 16-guards

← Zurück zur Übersicht | Demo | Quelltext auf GitHub
src/app/app.module.ts CHANGED
@@ -1,6 +1,8 @@
1
- import { NgModule } from '@angular/core';
2
  import { provideHttpClient, withInterceptorsFromDi, HTTP_INTERCEPTORS } from '@angular/common/http';
3
  import { BrowserModule } from '@angular/platform-browser';
 
 
4
 
5
  import { AppRoutingModule } from './app-routing.module';
6
  import { AppComponent } from './app.component';
@@ -24,8 +26,16 @@ import { AuthInterceptor } from './shared/auth.interceptor';
24
  provide: HTTP_INTERCEPTORS,
25
  useClass: AuthInterceptor,
26
  multi: true
 
 
 
 
27
  }
28
  ],
29
  bootstrap: [AppComponent]
30
  })
31
- export class AppModule { }
 
 
 
 
1
+ import { NgModule, LOCALE_ID } from '@angular/core';
2
  import { provideHttpClient, withInterceptorsFromDi, HTTP_INTERCEPTORS } from '@angular/common/http';
3
  import { BrowserModule } from '@angular/platform-browser';
4
+ import { registerLocaleData } from '@angular/common';
5
+ import localeDe from '@angular/common/locales/de';
6
 
7
  import { AppRoutingModule } from './app-routing.module';
8
  import { AppComponent } from './app.component';
26
  provide: HTTP_INTERCEPTORS,
27
  useClass: AuthInterceptor,
28
  multi: true
29
+ },
30
+ {
31
+ provide: LOCALE_ID,
32
+ useValue: 'de'
33
  }
34
  ],
35
  bootstrap: [AppComponent]
36
  })
37
+ export class AppModule {
38
+ constructor() {
39
+ registerLocaleData(localeDe);
40
+ }
41
+ }