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.

So in the end the li elements should contain the attributes of the data-translate elements.
Target Elements:

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.