From 401b35bea9e1659d180125f1cd4c84b338707db3 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 19 Mar 2023 22:58:47 -0700 Subject: [PATCH] Add translation for some missing items Closes #1123 --- public/locales/en/common.json | 13 +++++++++++-- src/components/services/status.jsx | 27 ++++++++++++++++++--------- src/widgets/homebridge/component.jsx | 2 +- 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index c56fc3943..a29bccd1f 100755 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -60,9 +60,15 @@ "tx": "TX", "mem": "MEM", "cpu": "CPU", + "running": "Running", "offline": "Offline", "error": "Error", - "unknown": "Unknown" + "unknown": "Unknown", + "starting": "Starting", + "unhealthy": "Unhealthy", + "not_found": "Not Found", + "exited": "Exited", + "partial": "Partial" }, "ping": { "error": "Error", @@ -365,7 +371,10 @@ "update_available": "Update Available", "up_to_date": "Up to Date", "child_bridges": "Child Bridges", - "child_bridges_status": "{{ok}}/{{total}}" + "child_bridges_status": "{{ok}}/{{total}}", + "up": "Up", + "pending": "Pending", + "down": "Down" }, "healthchecks": { "new": "New", diff --git a/src/components/services/status.jsx b/src/components/services/status.jsx index 0673806be..dba30f5b1 100644 --- a/src/components/services/status.jsx +++ b/src/components/services/status.jsx @@ -12,34 +12,43 @@ export default function Status({ service }) { } + let statusLabel = ""; + if (data && data.status?.includes("running")) { if (data.health === "starting") { return ( -