diff --git a/frontend/main.ts b/frontend/main.ts index 9d9bd2d..95adeee 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -5,6 +5,8 @@ document.addEventListener('DOMContentLoaded', function() { initSearch(); initSidebar(); initToggle(); + + replaceStrings(); }); function initToggle() { @@ -217,3 +219,10 @@ function initTripSidebar(triggerElement: HTMLElement) { } } } + +function replaceStrings() { + const weekdays = document.querySelectorAll('.weekday-js'); + Array.prototype.forEach.call(weekdays, (weekday: HTMLElement) => { + weekday.innerHTML = weekday.innerHTML.replace('Freitag', 'Markttag'); + }); +}