diff --git a/webapp/src/locales/de.json b/webapp/src/locales/de.json index bf8d20a0..2ad1e719 100644 --- a/webapp/src/locales/de.json +++ b/webapp/src/locales/de.json @@ -63,7 +63,12 @@ "7012": "LWT Offline Nachricht darf nicht länger als {max} Zeichen sein!", "7013": "Veröffentlichungsintervall muss zwischen {min} und {max} sein!", "7014": "Hass Topic darf nicht länger als {max} Zeichen sein!", - "7015": "Hass Topic darf keine Leerzeichen enthalten!" + "7015": "Hass Topic darf keine Leerzeichen enthalten!", + "8001": "IP Adresse ist ungültig!", + "8002": "Netzmaske ist ungültig!", + "8003": "Standardgateway ist ungültig!", + "8004": "DNS Server IP 1 ist ungültig!", + "8005": "DNS Server IP 2 ist ungültig!" }, "home": { "LiveData": "Live Daten", diff --git a/webapp/src/locales/en.json b/webapp/src/locales/en.json index da2a4ffd..ae701fed 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -63,7 +63,12 @@ "7012": "LWT offline value must not longer then {max} characters!", "7013": "Publish interval must be a number between {min} and {max}!", "7014": "Hass topic must not longer then {max} characters!", - "7015": "Hass topic must not contain space characters!" + "7015": "Hass topic must not contain space characters!", + "8001": "IP address is invalid!", + "8002": "Netmask is invalid!", + "8003": "Gateway is invalid!", + "8004": "DNS Server IP 1 is invalid!", + "8005": "DNS Server IP 2 is invalid!" }, "home": { "LiveData": "Live Data", diff --git a/webapp/src/views/NetworkAdminView.vue b/webapp/src/views/NetworkAdminView.vue index 10a1485a..5293adb2 100644 --- a/webapp/src/views/NetworkAdminView.vue +++ b/webapp/src/views/NetworkAdminView.vue @@ -162,7 +162,7 @@ export default defineComponent({ .then((response) => handleResponse(response, this.$emitter, this.$router)) .then( (response) => { - this.alertMessage = response.message; + this.alertMessage = this.$t('apiresponse.' + response.code, response.param); this.alertType = response.type; this.showAlert = true; }