Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds opportunity to fully translate "Append TextAnnotation" phrase #1932

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions lib/features/context-pad/ContextPadProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
)
});
}
Expand All @@ -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': {
Expand Down Expand Up @@ -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'))
});
}

Expand Down