Skip to content

Commit

Permalink
set locale for mat date
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaveamicroservice committed Mar 8, 2024
1 parent 4347a1a commit fb59dd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ import { UserEffects } from './state/user/user.effects';
import { InitialCardCreationDialogComponent } from './components/initial-card-creation-dialog/initial-card-creation.dialog';
import { QuizEffects } from './state/quiz/quiz.effects';
import { PictureEffects } from './state/picture/picture.effects';
import { MAT_DATE_LOCALE } from '@angular/material/core';

registerLocaleData(localeDeCh);

Expand Down Expand Up @@ -230,6 +231,7 @@ export function MSALGuardConfigFactory(): MsalGuardConfiguration {
},
},
{ provide: LOCALE_ID, useValue: 'de-CH' },
{ provide: MAT_DATE_LOCALE, useValue: 'de-CH' },
],
bootstrap: [AppComponent, MsalRedirectComponent],
})
Expand Down

0 comments on commit fb59dd5

Please sign in to comment.