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

View File

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