Skip to content
Snippets Groups Projects
Commit a9592824 authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

Merge branch 'fc-fix-locale' into 'main'

Reintroduce locale setting for fullcalendar views

See merge request kif/akplanning!85
parents d06f2570 e4b213f7
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
// Adapt to timezone of the connected event // Adapt to timezone of the connected event
timeZone: '{{ ak.event.timezone }}', timeZone: '{{ ak.event.timezone }}',
initialView: 'timeGrid', initialView: 'timeGrid',
// Adapt to user selected locale
locale: '{{ LANGUAGE_CODE }}',
// No header, not buttons // No header, not buttons
headerToolbar: false, headerToolbar: false,
aspectRatio: 2.5, aspectRatio: 2.5,
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
// Adapt to timezone of the connected event // Adapt to timezone of the connected event
timeZone: '{{ event.timezone }}', timeZone: '{{ event.timezone }}',
initialView: 'timeGrid', initialView: 'timeGrid',
// Adapt to user selected locale
locale: '{{ LANGUAGE_CODE }}',
// No header, not buttons // No header, not buttons
headerToolbar: { headerToolbar: {
left: '', left: '',
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
right: 'resourceTimelineDay,resourceTimelineEvent' right: 'resourceTimelineDay,resourceTimelineEvent'
}, },
themeSystem: 'bootstrap', themeSystem: 'bootstrap',
// Adapt to user selected locale
locale: '{{ LANGUAGE_CODE }}',
initialView: 'resourceTimelineEvent', initialView: 'resourceTimelineEvent',
views: { views: {
resourceTimelineDay: { resourceTimelineDay: {
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
timeZone: '{{ event.timezone }}', timeZone: '{{ event.timezone }}',
headerToolbar: false, headerToolbar: false,
themeSystem: 'bootstrap', themeSystem: 'bootstrap',
// Adapt to user selected locale
locale: '{{ LANGUAGE_CODE }}',
slotDuration: '01:00', slotDuration: '01:00',
initialView: 'resourceTimeline', initialView: 'resourceTimeline',
visibleRange: { visibleRange: {
......
...@@ -78,6 +78,8 @@ ...@@ -78,6 +78,8 @@
}, },
//aspectRatio: 2, //aspectRatio: 2,
themeSystem: 'bootstrap', themeSystem: 'bootstrap',
// Adapt to user selected locale
locale: '{{ LANGUAGE_CODE }}',
initialView: 'resourceTimelineEventVert', initialView: 'resourceTimelineEventVert',
views: { views: {
resourceTimelineDayHoriz: { resourceTimelineDayHoriz: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment