From 35f300c8ebd56b916aadb23c6882113842a43029 Mon Sep 17 00:00:00 2001
From: Louis Lam
Date: Thu, 23 Mar 2023 17:17:53 +0800
Subject: [PATCH] Improve and reuse language keys
---
src/lang/en.json | 1 +
src/pages/StatusPage.vue | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/lang/en.json b/src/lang/en.json
index 8f28c8e3a..2da2e4442 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -173,6 +173,7 @@
"Avg. Response": "Avg. Response",
"Entry Page": "Entry Page",
"statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "statusPageRefreshIn": "Refresh in: {0}",
"No Services": "No Services",
"All Systems Operational": "All Systems Operational",
"Partially Degraded Service": "Partially Degraded Service",
diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue
index b02bf8a7b..b202be305 100644
--- a/src/pages/StatusPage.vue
+++ b/src/pages/StatusPage.vue
@@ -308,8 +308,8 @@
-
{{ $t("last update") }}:
-
{{ $t("refresh in") }}: {{ updateCountdownText }}
+
{{ $t("Last Updated") }}:
+
{{ $tc("statusPageRefreshIn", [ updateCountdownText]) }}