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

15 lines
350 B
JavaScript
Raw Normal View History

'use strict';
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);
}