From 25af538c88e8f0b2402c8648b0dc464ebda432f5 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 30 Jan 2026 14:07:28 +0100 Subject: [PATCH] Enhance calendar functionality in personal section: Implement detailed calendar views (month, week, workweek, day) in CalendarView component. Update localization files for English and German to include translations for calendar features such as views, weekdays, and months. This update improves user experience by providing a comprehensive calendar interface. --- frontend/src/i18n/locales/de/personal.json | 40 +- frontend/src/i18n/locales/en/personal.json | 40 +- frontend/src/views/personal/CalendarView.vue | 649 ++++++++++++++++++- 3 files changed, 709 insertions(+), 20 deletions(-) diff --git a/frontend/src/i18n/locales/de/personal.json b/frontend/src/i18n/locales/de/personal.json index fde8914..f04d480 100644 --- a/frontend/src/i18n/locales/de/personal.json +++ b/frontend/src/i18n/locales/de/personal.json @@ -2,7 +2,45 @@ "personal": { "calendar": { "title": "Kalender", - "comingSoon": "Der Kalender wird bald verfügbar sein. Hier können Sie zukünftig Ihre Termine und Ereignisse verwalten." + "today": "Heute", + "views": { + "month": "Monat", + "week": "Woche", + "workweek": "Arbeitswoche", + "day": "Tag" + }, + "weekdays": { + "mon": "Mo", + "tue": "Di", + "wed": "Mi", + "thu": "Do", + "fri": "Fr", + "sat": "Sa", + "sun": "So" + }, + "weekdaysFull": { + "mon": "Montag", + "tue": "Dienstag", + "wed": "Mittwoch", + "thu": "Donnerstag", + "fri": "Freitag", + "sat": "Samstag", + "sun": "Sonntag" + }, + "months": { + "jan": "Januar", + "feb": "Februar", + "mar": "März", + "apr": "April", + "may": "Mai", + "jun": "Juni", + "jul": "Juli", + "aug": "August", + "sep": "September", + "oct": "Oktober", + "nov": "November", + "dec": "Dezember" + } } } } diff --git a/frontend/src/i18n/locales/en/personal.json b/frontend/src/i18n/locales/en/personal.json index 67fb4d6..80a58cb 100644 --- a/frontend/src/i18n/locales/en/personal.json +++ b/frontend/src/i18n/locales/en/personal.json @@ -2,7 +2,45 @@ "personal": { "calendar": { "title": "Calendar", - "comingSoon": "The calendar will be available soon. Here you will be able to manage your appointments and events." + "today": "Today", + "views": { + "month": "Month", + "week": "Week", + "workweek": "Work Week", + "day": "Day" + }, + "weekdays": { + "mon": "Mon", + "tue": "Tue", + "wed": "Wed", + "thu": "Thu", + "fri": "Fri", + "sat": "Sat", + "sun": "Sun" + }, + "weekdaysFull": { + "mon": "Monday", + "tue": "Tuesday", + "wed": "Wednesday", + "thu": "Thursday", + "fri": "Friday", + "sat": "Saturday", + "sun": "Sunday" + }, + "months": { + "jan": "January", + "feb": "February", + "mar": "March", + "apr": "April", + "may": "May", + "jun": "June", + "jul": "July", + "aug": "August", + "sep": "September", + "oct": "October", + "nov": "November", + "dec": "December" + } } } } diff --git a/frontend/src/views/personal/CalendarView.vue b/frontend/src/views/personal/CalendarView.vue index e3df35e..4700dbf 100644 --- a/frontend/src/views/personal/CalendarView.vue +++ b/frontend/src/views/personal/CalendarView.vue @@ -2,9 +2,144 @@

{{ $t('personal.calendar.title') }}

-
- Coming Soon -

{{ $t('personal.calendar.comingSoon') }}

+ +
+ + +
+ +
+
+ + +
+
+
+ {{ $t(`personal.calendar.weekdays.${day}`) }} +
+
+
+
+ {{ day.dayNumber }} +
+
+
+
+
+
+ + +
+
+
+
+
+ {{ $t(`personal.calendar.weekdays.${day.weekday}`) }} +
+
{{ day.dayNumber }}
+
+
+
+
+
+ {{ formatHour(hour) }} +
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+ {{ $t(`personal.calendar.weekdays.${day.weekday}`) }} +
+
{{ day.dayNumber }}
+
+
+
+
+
+ {{ formatHour(hour) }} +
+
+
+
+
+
+
+
+
+ + +
+
+
+ {{ $t(`personal.calendar.weekdays.${currentDayData.weekday}`) }}, + {{ currentDayData.dayNumber }}. {{ $t(`personal.calendar.months.${currentDayData.month}`) }} {{ currentDayData.year }} +
+
+
+
+
+ {{ formatHour(hour) }} +
+
+
+
+
+
+
+
@@ -12,12 +147,184 @@