mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
fix showing "30 day" instead of "30 days" and giving our translators the chance to differentiate between them
This commit is contained in:
@@ -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)}`;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user