bpmn-js Sinicization (Chineseize element prompt language)

Chinese file download address

        Workflow engine is used in recent projects, and the design of the process needs to be done on the front-end (web). Project customers can directly design the process, then deploy and use it. The front-end framework uses angular7.x. Based on the above requirements, we chose bpmn-js to integrate in Angular, allowing customers to design the process directly, instead of designing the process at the back end and then using it. First on the renderings:

Baidu has been working on the localization of bpmn-js for a long time, but the information found was either wrong or misleading. Later, through source code analysis, it was found that only two files need to be modified. The two files are:

bpmn-js\lib\features\context-pad\ContextPadProvider.js;
bpmn-js\lib\features\palette\PaletteProvider.js

As long as the English prompts in the two files are changed to Chinese prompts, the Chineseization is completed! ! ! ! !

Above the blog post are the two files I finished Chinese. You can refer to them. Note: I made some deletions when I finished localizing. Everyone understands how to localize.

 

Guess you like

Origin blog.csdn.net/nanxiaotiantian/article/details/98210309