bpmn-js
Version:
A bpmn 2.0 toolkit and web modeler
18 lines (13 loc) • 354 B
JavaScript
;
var translate = require('diagram-js/lib/i18n/translate/translate');
function collectTranslations(template, replacements) {
var log = {
type: 'translations',
msg: template
};
console.log(JSON.stringify(log));
return translate(template, replacements);
}
module.exports = {
translate: [ 'value', collectTranslations ]
};