From 24eecf7e111dff09bd6738588fe3749d82a22e5f Mon Sep 17 00:00:00 2001 From: Jonas Kuche Date: Fri, 17 Nov 2023 10:41:39 +0100 Subject: [PATCH] fix(i18n): import german date locale --- modules/fbs-core/web/src/app/app.module.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/fbs-core/web/src/app/app.module.ts b/modules/fbs-core/web/src/app/app.module.ts index c42a6c269..0da179435 100644 --- a/modules/fbs-core/web/src/app/app.module.ts +++ b/modules/fbs-core/web/src/app/app.module.ts @@ -113,6 +113,10 @@ import { I18NextModule } from "angular-i18next"; import { I18N_PROVIDERS } from "./util/i18n"; import { LanguageMenuComponent } from "./page-components/sidebar/language-menu/language-menu.component"; +import { registerLocaleData } from "@angular/common"; +import localeDe from "@angular/common/locales/de"; +import localeDeExtra from "@angular/common/locales/extra/de"; + @Injectable() export class ApiURIHttpInterceptor implements HttpInterceptor { constructor(private authService: AuthService) {} @@ -268,3 +272,5 @@ export class AppModule {} export function tokenGetter() { return localStorage.getItem("token"); } + +registerLocaleData(localeDe, localeDeExtra);