bpmn.js sporadically uses a module called translate, apparently for internationalization.
The module is defined in diagram.js.
translate is supposed to take a string and a set of replacements to translate that string. It does not really do anything and it is not apparent how exactly it is supposed to work. However, to stay "compatible" to bpmn.js, we should consider consistently using it within our codebase.
bpmn.js sporadically uses a module called
translate, apparently for internationalization.The module is defined in diagram.js.
translateis supposed to take a string and a set of replacements to translate that string. It does not really do anything and it is not apparent how exactly it is supposed to work. However, to stay "compatible" to bpmn.js, we should consider consistently using it within our codebase.