From b77ce9fc0e5c25990b459f60d13d6fd64406ee83 Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Fri, 5 Mar 2021 14:40:05 +0000 Subject: [PATCH] localize --- hassio/src/components/supervisor-connectivity.ts | 7 ++----- src/translations/en.json | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hassio/src/components/supervisor-connectivity.ts b/hassio/src/components/supervisor-connectivity.ts index e1d8fee5f6..8dfae144c4 100644 --- a/hassio/src/components/supervisor-connectivity.ts +++ b/hassio/src/components/supervisor-connectivity.ts @@ -15,15 +15,12 @@ class SupervisorConnectivity extends LitElement { @property({ attribute: false }) public supervisor!: Supervisor; protected render(): TemplateResult { - if ( - !this.supervisor.network.host_internet && - this.supervisor.network.supervisor_internet - ) { + if (this.supervisor.network.supervisor_internet) { return html``; } return html`
- The supervisor has lost connectivity. + ${this.supervisor.localize("common.error.lost_connectivity")}
`; } diff --git a/src/translations/en.json b/src/translations/en.json index 2b887a7f25..9d2498280f 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -3618,7 +3618,8 @@ "error": { "unknown": "Unknown error", - "update_failed": "Update failed" + "update_failed": "Update failed", + "lost_connectivity": "The Supervisor has lost connectivity, check the Supervisor logs and your network settings." } }, "confirm": {