TranslationCollector.js 334 B

12345678910111213141516
  1. import translate from 'diagram-js/lib/i18n/translate/translate';
  2. function collectTranslations(template, replacements) {
  3. var log = {
  4. type: 'translations',
  5. msg: template
  6. };
  7. console.log(JSON.stringify(log));
  8. return translate(template, replacements);
  9. }
  10. export default {
  11. translate: [ 'value', collectTranslations ]
  12. };