Change Language and generate xml

Hi, I am new to using the bpmn libraries, I wonder what are the steps to be able to modify the names of the panel and the options that are displayed in the tools? (change the language specifically spanish). As well as in the generation of the xml when the model is finished?
I am implementing this in angular 12.