Skip to content

Commit

Permalink
🔨 use proper translation of calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
devmount committed May 12, 2020
1 parent 19497bf commit 0aaf26a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/modals/SetlistSet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
:inline="true"
:monday-first="true"
:open-date="setlist.date != '' ? (new Date(setlist.date)) : (new Date())"
:language="calendarLanguage[$i18n.locale]"
name="setlistdate"
@selected="updateDate"
></datepicker>
Expand Down Expand Up @@ -147,7 +148,8 @@
// get basic program parameters
import basics from '@/basics'
// init datepicker component
import Datepicker from 'vuejs-datepicker';
import Datepicker from 'vuejs-datepicker'
import {en, de} from 'vuejs-datepicker/dist/locale'
export default {
name: 'setlist-set',
Expand Down Expand Up @@ -177,7 +179,11 @@ export default {
title: false,
slug: false,
},
tunes: basics.tunes
tunes: basics.tunes,
calendarLanguage: {
en: en,
de: de
}
}
},
watch: {
Expand Down

0 comments on commit 0aaf26a

Please sign in to comment.