mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-18 21:12:32 +00:00
d3449ca87c
* use ES6 import / export * UTILS: export individual utilities * TESTS: localize TestHelper includes BREAKING CHANGE: * all utilities export independent functions * library sources got ported to ES6. You must now use a ES module bundler such as Browserify + babelify or Webpack to consume this library (or parts of it).
18 lines
349 B
JavaScript
18 lines
349 B
JavaScript
'use strict';
|
|
|
|
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 ]
|
|
}; |