diff --git a/src/components/Uptime.vue b/src/components/Uptime.vue index 64bbd4e51..661030b72 100644 --- a/src/components/Uptime.vue +++ b/src/components/Uptime.vue @@ -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)}`; } }, }; diff --git a/src/lang/en.json b/src/lang/en.json index 3783ae4d8..dfa8df22b 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -52,10 +52,8 @@ "now": "now", "time ago": "{0} ago", "day": "day | days", - "-day": "-day", - "hour": "hour", - "-hour": "-hour", - "-year": "-year", + "hour": "hour | hours", + "year": "year | years", "Response": "Response", "Ping": "Ping", "Monitor Type": "Monitor Type", diff --git a/src/pages/Details.vue b/src/pages/Details.vue index a79ba76b4..e541e23b5 100644 --- a/src/pages/Details.vue +++ b/src/pages/Details.vue @@ -237,7 +237,7 @@ >

{{ pingTitle(true) }}

- (24{{ $t("-hour") }}) + ({{ 24 }} {{ $tc("hour", 24) }})

@@ -250,7 +250,7 @@ >

{{ $t("Uptime") }}

- (24{{ $t("-hour") }}) + ({{ 24 }} {{ $tc("hour", 24) }})

@@ -263,7 +263,7 @@ >

{{ $t("Uptime") }}

- (30{{ $t("-day") }}) + ({{ 30 }} {{ $tc("day", 30) }})

@@ -276,7 +276,7 @@ >

{{ $t("Uptime") }}

- (1{{ $t("-year") }}) + ({{ 1 }} {{ $tc("year", 1) }})