From 732895554aab7c4be62f358c5bba4b05b2f21597 Mon Sep 17 00:00:00 2001 From: Artem Gusev Date: Sat, 29 Jul 2023 15:00:13 +0000 Subject: [PATCH] feat: translate Append TextAnnotation context pad action --- CHANGELOG.md | 2 ++ lib/features/context-pad/ContextPadProvider.js | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a0cd85594..c5a7e5ea84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen ___Note:__ Yet to be released changes appear here._ +* `FEAT`: translate _Append TextAnnotation_ context pad action ([#1932](https://github.com/bpmn-io/bpmn-js/pull/1932)) + ## 13.2.2 * `FIX`: do not vertically resize empty pools using the space tool ([#1769](https://github.com/bpmn-io/bpmn-js/issues/1769)) diff --git a/lib/features/context-pad/ContextPadProvider.js b/lib/features/context-pad/ContextPadProvider.js index 1c679aa66c..e0b069e9d8 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,11 @@ 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') + ) }); }