mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-12 18:14:40 +00:00
28cc4e8e10
Use `grunt extract-translations` to run extraction. Will run all test cases to extract the available translations. Closes #497
18 lines
354 B
JavaScript
18 lines
354 B
JavaScript
'use strict';
|
|
|
|
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 ]
|
|
}; |