diff --git a/public/js/components/Calendar/Day/Page.js b/public/js/components/Calendar/Day/Page.js index 61d748374..68ddc419a 100644 --- a/public/js/components/Calendar/Day/Page.js +++ b/public/js/components/Calendar/Day/Page.js @@ -102,6 +102,7 @@ export default { dayText(){ if(!this.size || !this.day)return {}; return { + heading: this.day.toLocaleString(this.$p.user_language_locale_identifier.value, { dateStyle: 'short' }), tag: this.day.toLocaleString(this.$p.user_language_locale_identifier.value, { weekday: this.size < 2 ? 'narrow' : (this.size < 3 ? 'short' : 'long') }), datum: this.day.toLocaleString(this.$p.user_language_locale_identifier.value, [{ day: 'numeric', month: 'numeric' }, { day: 'numeric', month: 'numeric' }, { day: 'numeric', month: 'numeric' }, { dateStyle: 'short' }][this.size]), } @@ -302,7 +303,7 @@ export default {
-
+
{{dayText.tag}}
{{dayText.datum}}
diff --git a/public/js/components/Calendar/Week/Page.js b/public/js/components/Calendar/Week/Page.js index acec0dcec..8cc657cb1 100644 --- a/public/js/components/Calendar/Week/Page.js +++ b/public/js/components/Calendar/Week/Page.js @@ -61,6 +61,7 @@ export default { let dayTextMap ={}; this.days.forEach((day)=>{ dayTextMap[day] = { + heading: day.toLocaleString(this.$p.user_language_locale_identifier.value, { dateStyle: 'short' }), tag: day.toLocaleString(this.$p.user_language_locale_identifier.value, { weekday: this.size < 2 ? 'narrow' : (this.size < 3 ? 'short' : 'long') }), datum: day.toLocaleString(this.$p.user_language_locale_identifier.value, [{ day: 'numeric', month: 'numeric' }, { day: 'numeric', month: 'numeric' }, { day: 'numeric', month: 'numeric' }, { dateStyle: 'short' }][this.size]), }; @@ -118,7 +119,7 @@ export default { smallestTimeFrame() { return [30,15,10,5][this.size]; } - }, + }, methods: { hourGridIdentifier(hour) { // this is the id attribute that is responsible to scroll the calender to the first event @@ -220,7 +221,7 @@ export default {
-
+
{{dayText[day]?.tag}}
{{dayText[day]?.datum}}