diff --git a/apps/mina-sidor-fa/src/app/app.module.ts b/apps/mina-sidor-fa/src/app/app.module.ts index 02e7667..6584edc 100644 --- a/apps/mina-sidor-fa/src/app/app.module.ts +++ b/apps/mina-sidor-fa/src/app/app.module.ts @@ -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], })