fix: replace hardcoded Uhr suffix and use getLocale() in budget

This commit is contained in:
Ulas
2026-03-31 23:27:44 +02:00
parent 66a9bdfa44
commit 26a8434369
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -665,7 +665,7 @@ function showEventPopup(ev, anchor) {
const timeStr = ev.all_day
? t('calendar.allDay')
: formatDateTime(ev.start_datetime)
+ (ev.end_datetime ? ` ${formatTime(ev.end_datetime)} Uhr` : '');
+ (ev.end_datetime ? ` ${formatTime(ev.end_datetime)}${t('calendar.timeSuffix') ? ' ' + t('calendar.timeSuffix') : ''}`.trim() : '');
popup.innerHTML = `
<div class="event-popup__color-bar" style="background-color:${escHtml(ev.color)};"></div>