Skip to content

Commit

Permalink
Fix locales not affecting header buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanMihaiciuc committed Jun 27, 2021
1 parent 1024363 commit 0e5b273
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Calendar.runtime.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ThingworxRuntimeWidget, TWService, TWProperty } from 'typescriptwebpacksupport/widgetruntimesupport'
import '@fullcalendar/core/locales-all'
import * as allLocales from '@fullcalendar/core/locales-all'
import { Calendar, OptionsInput, EventApi, EventInput, Duration, View } from '@fullcalendar/core'
import { EventSourceError } from '@fullcalendar/core/structs/event-source'
import dayGridPlugin from '@fullcalendar/daygrid'
Expand Down Expand Up @@ -332,6 +332,7 @@ class CalendarWidget extends TWRuntimeWidget {
center: 'title',
right: this.view.indexOf(',') == -1 ? '' : this.view
},
buttonIcons: false,
editable: this.getProperty('Editable', false),
eventDurationEditable: this.getProperty('Editable', false),
eventStartEditable: this.getProperty('Editable', false),
Expand All @@ -340,6 +341,7 @@ class CalendarWidget extends TWRuntimeWidget {
slotDuration: this.weekSlotDuration || '00:30:00',
allDaySlot: this.showAllDaySlot === undefined ? true : this.showAllDaySlot,
defaultView: this.view.indexOf(',') == -1 ? this.view : 'timeGridWeek',
locales: allLocales,
locale: this.locale,
height: this.jqElement[0].offsetHeight || 'auto',
selectable: this.dragToSelect,
Expand Down

0 comments on commit 0e5b273

Please sign in to comment.