bpmn-js/test/spec/i18n/custom-translate/custom-translate.js

15 lines
356 B
JavaScript

'use strict';
var translate = require('diagram-js/lib/i18n/translate/translate');
module.exports = function customTranslate(template, replacements) {
if (template === 'Remove') {
template = 'Eliminar';
}
if (template === 'Activate the hand tool') {
template = 'Activar herramienta mano';
}
return translate(template, replacements);
};