another $tc

This commit is contained in:
Henry Jameson 2025-01-04 01:39:20 +02:00
parent 32d07606ba
commit 41a1a75f74

View file

@ -40,7 +40,7 @@ export default {
return this.timeAsDate.toLocaleString(this.browserLocale)
},
relativeTimeString () {
const timeString = this.$i18n.tc(this.relativeTime.key, this.relativeTime.num, [this.relativeTime.num])
const timeString = this.$i18n.t(this.relativeTime.key, [this.relativeTime.num], this.relativeTime.num)
if (typeof this.templateKey === 'string' && this.relativeTime.key !== 'time.now') {
return this.$i18n.t(this.templateKey, [timeString])