locale stuff

This commit is contained in:
2021-09-09 18:00:24 +02:00
parent 8276e39a7e
commit 6fcd785be0
16 changed files with 250 additions and 23 deletions

View File

@ -1,5 +1,7 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { LOCALE_ID, NgModule } from '@angular/core';
import localeDe from '@angular/common/locales/de';
import { registerLocaleData } from '@angular/common';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@ -43,6 +45,8 @@ import { FeeDetailsComponent } from './fee-details/fee-details.component';
import { MatExpansionModule } from '@angular/material/expansion';
import { AccountComponent } from './account/account.component'
registerLocaleData(localeDe)
@NgModule({
declarations: [
AppComponent,
@ -92,6 +96,7 @@ import { AccountComponent } from './account/account.component'
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: ErrorHandlerInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: AuthHandlerInterceptor, multi: true },
{ provide: LOCALE_ID, useValue: 'de' },
MatNativeDateModule
],
bootstrap: [AppComponent]