Skip to content

Commit

Permalink
#470: Only use locale without specific country postfix for vueCal com…
Browse files Browse the repository at this point in the history
…ponent

* Otherwise an error is thrown that the translation json of the missing locale is missing (e.g. en-GB).
  • Loading branch information
benitsch committed Jul 3, 2024
1 parent e625933 commit 4401f39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TimelineList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Licensed under the Elastic License 2.0. */
studyGroups: { type: Array as PropType<Array<StudyGroup>>, required: true },
});
const vueCalLocale = locale.value.split('-')[0];
const filterRelativeStartDate = ref();
const filterStudyGroup = ref();
const filterParticipant = ref();
Expand Down Expand Up @@ -548,7 +549,7 @@ Licensed under the Elastic License 2.0. */
<VueCal
:disable-views="['years', 'year']"
:selected-date="selectedDate"
:locale="locale"
:locale="vueCalLocale"
:events="events"
:on-event-click="onEventClick"
:min-date="studyStartDate"
Expand Down

0 comments on commit 4401f39

Please sign in to comment.