moved weekNumber into field and adjusted language handling accordingly [issue #910]

This commit is contained in:
Wolf-Gideon Bleek
2017-10-03 21:18:25 +02:00
parent b799609749
commit b4fd570269
12 changed files with 12 additions and 12 deletions

View File

@@ -94,7 +94,7 @@ Module.register("clock",{
dateWrapper.innerHTML = now.format(this.config.dateFormat);
}
if (this.config.showWeek) {
weekWrapper.innerHTML = this.translate("WEEK") + " " + now.week();
weekWrapper.innerHTML = this.translate("WEEK", { weekNumber: now.week() });
}
timeWrapper.innerHTML = timeString;
secondsWrapper.innerHTML = now.format("ss");