Add translation keys for "today", "yesterday" and "x days ago".
This commit is contained in:
parent
d39f260261
commit
5d05dfd019
4 changed files with 25 additions and 20 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue