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

13 lines
335 B
JavaScript
Raw Normal View History

import translate from 'diagram-js/lib/i18n/translate/translate';
export default function customTranslate(template, replacements) {
if (template === 'Remove') {
template = 'Eliminar';
}
if (template === 'Activate the hand tool') {
template = 'Activar herramienta mano';
}
return translate(template, replacements);
}