bpmn-js/test/helper/TranslationCollector.js
Nico Rehwaldt 9be61259bd chore(project): drop 'use strict'
We use ES modules, so 'use strict' is not necessary anymore.
2018-04-03 18:09:53 +02:00

16 lines
334 B
JavaScript

import translate from '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);
}
export default {
translate: [ 'value', collectTranslations ]
};