From ac8ca3689503acaee5c0a3539a27361ba0b59065 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sun, 11 Jun 2023 22:43:33 +0200 Subject: [PATCH] Enabled adding missing keys to the translation database --- src/lang/de-CH.json | 2 ++ src/lang/de-DE.json | 3 +++ src/lang/en.json | 3 +++ src/mixins/socket.js | 4 ++-- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lang/de-CH.json b/src/lang/de-CH.json index 2788b8704..d885ea50e 100644 --- a/src/lang/de-CH.json +++ b/src/lang/de-CH.json @@ -17,6 +17,8 @@ "Down": "Inaktiv", "Pending": "Ausstehend", "Unknown": "Unbekannt", + "Cannot connect to the socket server": "Es kann keine Verbindung zum Socket-Server hergestellt werden", + "Reconnecting...": "Die Verbindung wird wiederhergestellt...", "Pause": "Pausieren", "pauseDashboardHome": "Pausiert", "Name": "Name", diff --git a/src/lang/de-DE.json b/src/lang/de-DE.json index 97e9c8e97..c36049ac6 100644 --- a/src/lang/de-DE.json +++ b/src/lang/de-DE.json @@ -17,6 +17,8 @@ "Down": "Inaktiv", "Pending": "Ausstehend", "Unknown": "Unbekannt", + "Cannot connect to the socket server": "Es kann keine Verbindung zum Socket-Server hergestellt werden", + "Reconnecting...": "Die Verbindung wird wiederhergestellt...", "Pause": "Pausieren", "pauseDashboardHome": "Pausiert", "Name": "Name", @@ -627,6 +629,7 @@ "lastDay4": "4. letzter Tag im Monat", "No Maintenance": "Keine Wartung", "Schedule Maintenance": "Wartung planen", + "Edit Maintenance": "Wartung bearbeiten", "pauseMaintenanceMsg": "Möchtest du wirklich pausieren?", "maintenanceStatus-under-maintenance": "Unter Wartung", "maintenanceStatus-inactive": "Inaktiv", diff --git a/src/lang/en.json b/src/lang/en.json index 1bb7686e6..e4ac99d7e 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -22,6 +22,8 @@ "statusMaintenance": "Maintenance", "Maintenance": "Maintenance", "Unknown": "Unknown", + "Cannot connect to the socket server": "Cannot connect to the socket server", + "Reconnecting...": "Reconnecting...", "General Monitor Type": "General Monitor Type", "Passive Monitor Type": "Passive Monitor Type", "Specific Monitor Type": "Specific Monitor Type", @@ -437,6 +439,7 @@ "Maintenance Time Window of a Day": "Maintenance Time Window of a Day", "Effective Date Range": "Effective Date Range (Optional)", "Schedule Maintenance": "Schedule Maintenance", + "Edit Maintenance": "Edit Maintenance", "Date and Time": "Date and Time", "DateTime Range": "DateTime Range", "loadingError": "Cannot fetch the data, please try again later.", diff --git a/src/mixins/socket.js b/src/mixins/socket.js index c98a2e3ce..e2834251a 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -47,7 +47,7 @@ export default { statusPageListLoaded: false, statusPageList: [], proxyList: [], - connectionErrorMsg: "Cannot connect to the socket server. Reconnecting...", + connectionErrorMsg: `${this.$t("Cannot connect to the socket server.")} ${this.$t("Reconnecting...")}`, showReverseProxyGuide: true, cloudflared: { cloudflareTunnelToken: "", @@ -228,7 +228,7 @@ export default { socket.on("connect_error", (err) => { console.error(`Failed to connect to the backend. Socket.io connect_error: ${err.message}`); - this.connectionErrorMsg = `Cannot connect to the socket server. [${err}] Reconnecting...`; + this.connectionErrorMsg = `${this.$t("Cannot connect to the socket server.")} [${err}] ${this.$t("Reconnecting...")}`; this.showReverseProxyGuide = true; this.socket.connected = false; this.socket.firstConnect = false;