Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/gantt/src/i18n/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InjectionToken } from '@angular/core';
import { Locale as DateFnsLocale } from 'date-fns';
import type { Locale as DateFnsLocale } from 'date-fns';
import { GanttViewType } from '../class';

export enum GanttI18nLocale {
Expand Down
3 changes: 2 additions & 1 deletion packages/gantt/src/i18n/locales/de-de.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { de } from 'date-fns/locale';
import type { Locale as DateFnsLocale } from 'date-fns';
import { GanttViewType } from '../../class';
import { GanttI18nLocale } from '../i18n';

export default {
id: GanttI18nLocale.deDe,
dateLocale: de,
dateLocale: de as DateFnsLocale,
views: {
[GanttViewType.hour]: {
label: 'Stündlich',
Expand Down
3 changes: 2 additions & 1 deletion packages/gantt/src/i18n/locales/ru-ru.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ru } from 'date-fns/locale';
import type { Locale as DateFnsLocale } from 'date-fns';
import { GanttViewType } from '../../class';
import { GanttI18nLocale } from '../i18n';

export default {
id: GanttI18nLocale.ruRu,
dateLocale: ru,
dateLocale: ru as DateFnsLocale,
views: {
[GanttViewType.hour]: {
label: 'Ежечасно',
Expand Down
5 changes: 2 additions & 3 deletions packages/gantt/src/utils/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ import {
startOfHour,
endOfHour,
endOfMinute,
Locale,
FirstWeekContainsDate
Locale
} from 'date-fns';

import type { FirstWeekContainsDate } from 'date-fns/types';
import { TZDate } from '@date-fns/tz';

export {
Expand Down