Restore matrix impl and remove $tc
This commit is contained in:
parent
c47b975723
commit
7a801f3ec3
8 changed files with 1140 additions and 696 deletions
|
|
@ -16,7 +16,7 @@
|
|||
</transition-group>
|
||||
</div>
|
||||
</template>
|
||||
<span>{{ $tc("message.seen_by_count", seenBy.length) }}</span>
|
||||
<span>{{ $t("message.seen_by_count", seenBy.length) }}</span>
|
||||
</v-tooltip>
|
||||
</div>
|
||||
<BottomSheet
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
ref="seenByListBottomSheet"
|
||||
>
|
||||
<v-list>
|
||||
<v-subheader class="text-uppercase"> {{ $tc("message.seen_by") }}</v-subheader>
|
||||
<v-subheader class="text-uppercase"> {{ $t("message.seen_by") }}</v-subheader>
|
||||
<v-list-item v-for="(member, index) in seenBy" :key="index" class="text-left">
|
||||
<v-list-item-icon>
|
||||
<v-avatar size="40" color="grey">
|
||||
|
|
@ -96,7 +96,7 @@ export default {
|
|||
seenByTimeStamp(timestamp) {
|
||||
let dayDiff = utils.dayDiffToday(timestamp);
|
||||
if (dayDiff < 3) {
|
||||
return this.$tc("message.time_ago", dayDiff) + ' '+utils.formatTime(timestamp);
|
||||
return this.$t("message.time_ago", dayDiff) + ' '+utils.formatTime(timestamp);
|
||||
} else {
|
||||
return utils.formatTime(timestamp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue