Skip to content

Commit

Permalink
Update AkauntingDate.vue
Browse files Browse the repository at this point in the history
add parameters locale, default = en / German = de
  • Loading branch information
tognit committed Jan 31, 2021
1 parent 2021a6a commit 489e954
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/assets/js/components/AkauntingDate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<script>
import flatPicker from "vue-flatpickr-component";
import "flatpickr/dist/flatpickr.css";
import { de } from 'flatpickr/dist/l10n/de.js';
import { en } from 'flatpickr/dist/l10n/default.js';
export default {
name: 'akaunting-date',
Expand Down Expand Up @@ -76,7 +78,8 @@ export default {
data() {
return {
real_model: this.model
real_model: this.model,
locale: !this.local ? de : en,
}
},
Expand Down

0 comments on commit 489e954

Please sign in to comment.