diff --git a/frappe/utils/translation.js b/frappe/utils/translation.js index 24d2dd5a..fc2c3c56 100644 --- a/frappe/utils/translation.js +++ b/frappe/utils/translation.js @@ -29,7 +29,6 @@ class TranslationString { #stitch() { if (!(this.args[0] instanceof Array)) { - return this.args.join(' '); throw new ValueError( `invalid args passed to TranslationString ${ this.args diff --git a/src/pages/Settings/Settings.vue b/src/pages/Settings/Settings.vue index 26919091..5a96d25f 100644 --- a/src/pages/Settings/Settings.vue +++ b/src/pages/Settings/Settings.vue @@ -80,16 +80,19 @@ export default { fieldsChanged: [], tabs: [ { + key: 'Invoice', label: t`Invoice`, icon: 'invoice', component: markRaw(TabInvoice), }, { + key: 'General', label: t`General`, icon: 'general', component: markRaw(TabGeneral), }, { + key: 'System', label: t`System`, icon: 'system', component: markRaw(TabSystem), @@ -134,7 +137,7 @@ export default { }, setActiveTab() { const { tab } = this.$route.query; - const index = this.tabs.findIndex((i) => i.label === t(tab || 'Invoice')); + const index = this.tabs.findIndex((i) => i.key === tab || 'Invoice'); if (index !== -1) { this.activeTab = index; }