refactor: move locale settings to app
This commit is contained in:
@ -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' }]
|
||||
};
|
||||
|
@ -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
|
||||
]
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user