EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Relationship panel label translation
Yurii7a051ed21f9b
diff --git a/client/src/views/record/panels/relationship.js b/client/src/views/record/panels/relationship.jsindex 3464798ca6..defeeed4af 100644--- a/client/src/views/record/panels/relationship.js+++ b/client/src/views/record/panels/relationship.js@@ -454,6 +454,8 @@ class RelationshipPanelView extends BottomPanelView {if (parentEntityType && this.getLanguage().has(this.defs.label, 'labels', parentEntityType)) {titlePart = this.translate(this.defs.label, 'labels', parentEntityType);}+ } else if (this.defs.labelTranslation) {+ titlePart = this.getLanguage().translatePath(this.defs.labelTranslation);} else {titlePart = this.title;}diff --git a/schema/metadata/clientDefs.json b/schema/metadata/clientDefs.jsonindex 744d9eb263..28131ab0e2 100644--- a/schema/metadata/clientDefs.json+++ b/schema/metadata/clientDefs.json@@ -396,6 +396,10 @@"description": "A translatable label.","type": "string"},+ "labelTranslation": {+ "type": "string",+ "description": "A label translation path. As of v10.1."+ },"readOnly": {"description": "Read-only.","type": "boolean"