webapi: Network: Show language independent webapi messages
This commit is contained in:
parent
3e8c7a4c10
commit
1e26cbd335
@ -63,7 +63,12 @@
|
|||||||
"7012": "LWT Offline Nachricht darf nicht länger als {max} Zeichen sein!",
|
"7012": "LWT Offline Nachricht darf nicht länger als {max} Zeichen sein!",
|
||||||
"7013": "Veröffentlichungsintervall muss zwischen {min} und {max} sein!",
|
"7013": "Veröffentlichungsintervall muss zwischen {min} und {max} sein!",
|
||||||
"7014": "Hass Topic darf nicht länger als {max} Zeichen 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": {
|
"home": {
|
||||||
"LiveData": "Live Daten",
|
"LiveData": "Live Daten",
|
||||||
|
|||||||
@ -63,7 +63,12 @@
|
|||||||
"7012": "LWT offline value must not longer then {max} characters!",
|
"7012": "LWT offline value must not longer then {max} characters!",
|
||||||
"7013": "Publish interval must be a number between {min} and {max}!",
|
"7013": "Publish interval must be a number between {min} and {max}!",
|
||||||
"7014": "Hass topic must not longer then {max} characters!",
|
"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": {
|
"home": {
|
||||||
"LiveData": "Live Data",
|
"LiveData": "Live Data",
|
||||||
|
|||||||
@ -162,7 +162,7 @@ export default defineComponent({
|
|||||||
.then((response) => handleResponse(response, this.$emitter, this.$router))
|
.then((response) => handleResponse(response, this.$emitter, this.$router))
|
||||||
.then(
|
.then(
|
||||||
(response) => {
|
(response) => {
|
||||||
this.alertMessage = response.message;
|
this.alertMessage = this.$t('apiresponse.' + response.code, response.param);
|
||||||
this.alertType = response.type;
|
this.alertType = response.type;
|
||||||
this.showAlert = true;
|
this.showAlert = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user