bpmn-js-bpmnlint
Advanced tools
Comparing version 0.13.1 to 0.14.0
@@ -9,2 +9,6 @@ # Changelog | ||
## 0.14.0 | ||
* `FEAT`: add translation of reports | ||
## 0.13.1 | ||
@@ -11,0 +15,0 @@ |
@@ -54,3 +54,4 @@ import { Linter } from 'bpmnlint'; | ||
eventBus, | ||
overlays | ||
overlays, | ||
translate | ||
) { | ||
@@ -62,2 +63,3 @@ this._bpmnjs = bpmnjs; | ||
this._overlays = overlays; | ||
this._translate = translate; | ||
@@ -359,3 +361,3 @@ this._issues = {}; | ||
var rule = entry.rule, | ||
message = entry.message; | ||
message = this._translate(entry.message); | ||
@@ -396,3 +398,3 @@ var icon = stateToIcon[state]; | ||
var html = icon + '<span>' + errors + ' Errors, ' + warnings + ' Warnings</span>'; | ||
var html = icon + '<span>' + this._translate('{errors} Errors, {warnings} Warnings', { errors: errors.toString(), warnings: warnings.toString() }) + '</span>'; | ||
@@ -446,3 +448,3 @@ [ | ||
this._button = domify( | ||
'<button class="bjsl-button bjsl-button-inactive" title="Toggle linting"></button>' | ||
'<button class="bjsl-button bjsl-button-inactive" title="' + this._translate('Toggle linting') + '"></button>' | ||
); | ||
@@ -471,3 +473,4 @@ | ||
'eventBus', | ||
'overlays' | ||
'overlays', | ||
'translate' | ||
]; | ||
@@ -474,0 +477,0 @@ |
@@ -56,3 +56,4 @@ 'use strict'; | ||
eventBus, | ||
overlays | ||
overlays, | ||
translate | ||
) { | ||
@@ -64,2 +65,3 @@ this._bpmnjs = bpmnjs; | ||
this._overlays = overlays; | ||
this._translate = translate; | ||
@@ -361,3 +363,3 @@ this._issues = {}; | ||
var rule = entry.rule, | ||
message = entry.message; | ||
message = this._translate(entry.message); | ||
@@ -398,3 +400,3 @@ var icon = stateToIcon[state]; | ||
var html = icon + '<span>' + errors + ' Errors, ' + warnings + ' Warnings</span>'; | ||
var html = icon + '<span>' + this._translate('{errors} Errors, {warnings} Warnings', { errors: errors.toString(), warnings: warnings.toString() }) + '</span>'; | ||
@@ -448,3 +450,3 @@ [ | ||
this._button = minDom.domify( | ||
'<button class="bjsl-button bjsl-button-inactive" title="Toggle linting"></button>' | ||
'<button class="bjsl-button bjsl-button-inactive" title="' + this._translate('Toggle linting') + '"></button>' | ||
); | ||
@@ -473,3 +475,4 @@ | ||
'eventBus', | ||
'overlays' | ||
'overlays', | ||
'translate' | ||
]; | ||
@@ -476,0 +479,0 @@ |
{ | ||
"name": "bpmn-js-bpmnlint", | ||
"version": "0.13.1", | ||
"version": "0.14.0", | ||
"description": "bpmn-js integration for bpmnlint", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201026
861