Upon inspection, the following results are being displayed:
https://i.sstatic.net/oF4Qe.png
https://i.sstatic.net/21aHB.png
In the Vue template code provided:
<select class="form-select" v-model="post_format.wpml_language">
<option v-for="(lang, index) in wpml_languages" :value="lang">{{lang}} {{index}}</option>
</select>
The desired outcome is to have the value attribute of the option element represent the language code (en/es) and display the Language name.
The challenge lies in accessing the object within the vue code to achieve the desired formatting. Attempts made so far include:
<select class="form-select" v-model="post_format.wpml_language">
<option v-for="(lang, index) in wpml_languages" :value="lang[index]">{{lang[index]}}</option>
</select>
Your input on this matter would be greatly valued