There’s something I can’t solve. Hey, I got my Select2 slection. Now I want to know how to pass these ‘data-translate’ attributes.

So in the end the li elements should contain the attributes of the data-translate elements.
Target Elements: https://image.sv-studios.net/?img=18d04aa8e736849460a25ff2ee014e856.png
Please, can you help me?