Merge pull request #106 in TEA/mina-sidor-fa-web from fix-swedish-locale to develop

Squashed commit of the following:

commit 275c5e6765e2a5c3a252c0c044772427d874bc95
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Mon Sep 20 10:26:16 2021 +0200

    Update app.module.ts
This commit is contained in:
Daniel Appelgren
2021-09-20 14:04:53 +02:00
parent 43247476fd
commit 8da6899e04

View File

@@ -1,5 +1,5 @@
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { ErrorHandler, NgModule } from '@angular/core';
import { ErrorHandler, LOCALE_ID, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AuthInterceptor } from '@msfa-interceptors/auth.interceptor';
import { CustomErrorHandler } from '@msfa-interceptors/custom-error-handler.module';
@@ -7,6 +7,9 @@ import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ToastListModule } from './components/toast-list/toast-list.module';
import { AvropModule } from './pages/avrop/avrop.module';
import localeSe from '@angular/common/locales/sv';
import { registerLocaleData } from '@angular/common';
registerLocaleData(localeSe);
@NgModule({
declarations: [AppComponent],
@@ -17,6 +20,7 @@ import { AvropModule } from './pages/avrop/avrop.module';
useClass: CustomErrorHandler,
},
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
{ provide: LOCALE_ID, useValue: 'sv-SE' },
],
bootstrap: [AppComponent],
})