diff --git a/frontend/main.ts b/frontend/main.ts index 1e1d7cb..8275a1d 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -5,6 +5,8 @@ document.addEventListener('DOMContentLoaded', function() { initSearch(); initSidebar(); initToggle(); + + replaceStrings(); }); function initToggle() { @@ -206,3 +208,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'); + }); +} diff --git a/templates/index.html.tera b/templates/index.html.tera index 5069411..c1d26d6 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -40,7 +40,7 @@

{{ day.day| date(format="%d.%m.%Y") }} - {{ day.day | date(format="%A", locale="de_AT") }} + {{ day.day | date(format="%A", locale="de_AT") }}

{# --- START Events --- #}