diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 37cc868..a9a6504 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,10 +1,11 @@ -import {ApplicationConfig} from '@angular/core'; +import {ApplicationConfig, LOCALE_ID} from '@angular/core'; import {provideRouter} from '@angular/router'; import {routes} from './app.routes'; import {provideAnimationsAsync} from '@angular/platform-browser/animations/async'; import {provideHttpClient} from "@angular/common/http"; import {provideToastr} from "ngx-toastr"; +import {MAT_DATE_LOCALE} from "@angular/material/core"; export const appConfig: ApplicationConfig = { providers: [ @@ -22,5 +23,7 @@ export const appConfig: ApplicationConfig = { disableTimeOut: false, autoDismiss: true, maxOpened: 5 - })] + }), + { provide: LOCALE_ID, useValue: 'ru' }, + { provide: MAT_DATE_LOCALE, useValue: 'ru' }] }; diff --git a/src/pages/schedule/schedule.component.ts b/src/pages/schedule/schedule.component.ts index 0c2534c..9d51d77 100644 --- a/src/pages/schedule/schedule.component.ts +++ b/src/pages/schedule/schedule.component.ts @@ -1,4 +1,4 @@ -import {Component, LOCALE_ID, ViewChild} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; import {AdditionalText, TableHeaderComponent} from "@component/schedule/table-header/table-header.component"; import {addDays, weekInYear} from "@progress/kendo-date-math"; import {TabsComponent, TabsSelect} from "@component/schedule/tabs/tabs.component"; @@ -38,8 +38,7 @@ import {HasRoleDirective} from "@/directives/has-role.directive"; styleUrl: './schedule.component.css', providers: [ ScheduleService, - ImportService, - {provide: LOCALE_ID, useValue: 'ru-RU'} + ImportService ] })