Browse Source

Replace hard-coded names for groups in Status page with translations

ivanbratovic/improve-translatables
Ivan 3 years ago
parent
commit
267654c987
  1. 3
      src/languages/en.js
  2. 4
      src/pages/StatusPage.vue

3
src/languages/en.js

@ -309,4 +309,7 @@ export default {
recent: "Recent",
headersPlaceholder: "Example:\n\{\n \"HeaderName\": \"HeaderValue\"\n}",
bodyPlaceholder: "Example:\n\{\n \"key\": \"value\"\n}",
// Status page
"Untitled Group": "Untitled Group",
"Services": "Services",
};

4
src/pages/StatusPage.vue

@ -468,10 +468,10 @@ export default {
},
addGroup() {
let groupName = "Untitled Group";
let groupName = this.$t("Untitled Group");
if (this.$root.publicGroupList.length === 0) {
groupName = "Services";
groupName = this.$t("Services");
}
this.$root.publicGroupList.push({

Loading…
Cancel
Save