How to hand over attributes?

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.
Code_OSdUnovD3M

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?

When you initialize a Select2 widget from static HTML, including other data-* attributes in the Select2 widget is not supported.

The Select2 data format does support additional data fields, but you have to use either a JavaScript array or the AJAX feature to take advantage of it.