Add translation keys for "today", "yesterday" and "x days ago".

This commit is contained in:
N-Pex 2022-04-21 09:48:10 +02:00
parent d39f260261
commit 5d05dfd019
4 changed files with 25 additions and 20 deletions

View file

@ -1738,7 +1738,12 @@ export default {
},
dayForEvent(event) {
return util.formatDay(event.getTs());
let dayDiff = util.dayDiffToday(event.getTs());
if (dayDiff < 7) {
return this.$tc("message.time_ago", dayDiff);
} else {
return util.formatDay(event.getTs());
}
},
showRecordingUI() {