From f2f688b8f40d0d8cc6bba1df95398b0a5060c7be Mon Sep 17 00:00:00 2001 From: Artem Gusev Date: Sat, 29 Jul 2023 15:00:13 +0000 Subject: [PATCH] Adds opportunity to fully translate "Append TextAnnotation" phrase --- CHANGELOG.md | 2 +- lib/features/context-pad/ContextPadProvider.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a0cd85594..f4c7b40f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen ## Unreleased -___Note:__ Yet to be released changes appear here._ +* `FEAT`: opportunity to fully translate "Append TextAnnotation" phrase ([bpmn-js-i18n #22]https://github.com/bpmn-io/bpmn-js-i18n/issues/22) ## 13.2.2 diff --git a/lib/features/context-pad/ContextPadProvider.js b/lib/features/context-pad/ContextPadProvider.js index 1c679aa66c..6564c4dc1f 100644 --- a/lib/features/context-pad/ContextPadProvider.js +++ b/lib/features/context-pad/ContextPadProvider.js @@ -452,7 +452,8 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { assign(actions, { 'append.text-annotation': appendAction( 'bpmn:TextAnnotation', - 'bpmn-icon-text-annotation' + 'bpmn-icon-text-annotation', + translate('Append TextAnnotation') ) }); } @@ -468,7 +469,8 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { assign(actions, { 'append.text-annotation': appendAction( 'bpmn:TextAnnotation', - 'bpmn-icon-text-annotation' + 'bpmn-icon-text-annotation', + translate('Append TextAnnotation') ), 'connect': { @@ -519,7 +521,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { if (is(businessObject, 'bpmn:Group')) { assign(actions, { - 'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation') + 'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation', translate('Append TextAnnotation')) }); }