Restore matrix impl and remove $tc

This commit is contained in:
N-Pex 2025-05-06 11:28:47 +02:00
parent c47b975723
commit 7a801f3ec3
8 changed files with 1140 additions and 696 deletions

View file

@ -306,11 +306,11 @@ export default {
if (ti < 60) {
s = this.$t("global.time.recently");
} else if (ti < 3600 && Math.round(ti / 60) < 60) {
s = this.$tc("global.time.minutes", Math.round(ti / 60));
s = this.$t("global.time.minutes", Math.round(ti / 60));
} else if (ti < 86400 && Math.round(ti / 60 / 60) < 24) {
s = this.$tc("global.time.hours", Math.round(ti / 60 / 60));
s = this.$t("global.time.hours", Math.round(ti / 60 / 60));
} else {
s = this.$tc("global.time.days", Math.round(ti / 60 / 60 / 24));
s = this.$t("global.time.days", Math.round(ti / 60 / 60 / 24));
}
return this.toLocalNumbers(s);
},