[TASK] replace Freitag with Markttag for phipsi

This commit is contained in:
Marie Birner 2023-04-10 22:56:47 +02:00 committed by philipp
parent c23d22d027
commit df26112820

View File

@ -5,6 +5,8 @@ document.addEventListener('DOMContentLoaded', function() {
initSearch(); initSearch();
initSidebar(); initSidebar();
initToggle(); initToggle();
replaceStrings();
}); });
function initToggle() { function initToggle() {
@ -217,3 +219,11 @@ function initTripSidebar(triggerElement: HTMLElement) {
} }
} }
} }
function replaceStrings() {
const weekdays = document.querySelectorAll('.weekday-js');
Array.prototype.forEach.call(weekdays, (weekday: HTMLElement) => {
//weekday.innerHTML = weekday.innerHTML.replace('Donnerstag', 'Dönerstag');
weekday.innerHTML = weekday.innerHTML.replace('Freitag', 'Markttag');
});
}