Added translation for today and tomorrow

I had missread the documentation of moment.js. We've to provide the translation for today and tomorrow ourselves. For the translation I use the standard MM² translation mechanism.
This commit is contained in:
TheDuffman85 2021-02-10 14:24:59 +01:00 committed by GitHub
parent ef2fd16b69
commit ddb06ca214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,8 +372,8 @@ Module.register("calendar", {
} else { } else {
timeWrapper.innerHTML = this.capFirst( timeWrapper.innerHTML = this.capFirst(
moment(event.startDate, "x").calendar(null, { moment(event.startDate, "x").calendar(null, {
sameDay: "[Today]", sameDay: "[" + this.translate("TODAY") + "]",
nextDay: "[Tomorrow]", nextDay: "[" + this.translate("TOMORROW") + "]",
nextWeek: "dddd" nextWeek: "dddd"
}) })
); );