Browse Source

Make `Resp. Time (ms)` and `N/A` i18n

pull/310/head
Adam Stachowicz 3 years ago
parent
commit
7a109689d9
  1. 2
      src/components/PingChart.vue
  2. 2
      src/components/Uptime.vue
  3. 4
      src/languages/en.js
  4. 4
      src/pages/Details.vue

2
src/components/PingChart.vue

@ -85,7 +85,7 @@ export default {
y: {
title: {
display: true,
text: "Resp. Time (ms)",
text: this.$t("respTime"),
},
offset: false,
grid: {

2
src/components/Uptime.vue

@ -22,7 +22,7 @@ export default {
return Math.round(this.$root.uptimeList[key] * 10000) / 100 + "%";
}
return "N/A"
return this.$t("notAvailableShort")
},
color() {

4
src/languages/en.js

@ -106,5 +106,7 @@ export default {
"Resource Record Type": "Resource Record Type",
"Last Result": "Last Result",
"Create your admin account": "Create your admin account",
"Repeat Password": "Repeat Password"
"Repeat Password": "Repeat Password",
respTime: "Resp. Time (ms)",
notAvailableShort: "N/A"
}

4
src/pages/Details.vue

@ -238,7 +238,7 @@ export default {
return this.lastHeartBeat.ping;
}
return "N/A"
return this.$t("notAvailableShort")
},
avgPing() {
@ -246,7 +246,7 @@ export default {
return this.$root.avgPingList[this.monitor.id];
}
return "N/A"
return this.$t("notAvailableShort")
},
importantHeartBeatList() {

Loading…
Cancel
Save