bpmn-js/test/spec/i18n/custom-translate/custom-translate.js
davcs86 49173abdad feat(i18n): add localization
* Palette, ContextPad, Errors...

Closes #491
2016-03-11 20:10:10 +01:00

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);
};