fix showing "30 day" instead of "30 days" and giving our translators the chance to differentiate between them

This commit is contained in:
Frank Elsinga
2026-01-05 22:05:34 +01:00
parent f4f8019202
commit f230aecebd
3 changed files with 9 additions and 11 deletions
+3 -3
View File
@@ -85,12 +85,12 @@ export default {
title() {
if (this.type === "1y") {
return `1${this.$t("-year")}`;
return `1 ${this.$tc("year", 1)}`;
}
if (this.type === "720") {
return `30${this.$t("-day")}`;
return `30 ${this.$tc("day", 30)}`;
}
return `24${this.$t("-hour")}`;
return `24 ${this.$tc("hour", 24)}`;
}
},
};