I'm getting the following:
Vue template code:
<select class="form-select" v-model="post_format.wpml_language">
<option v-for="(lang, index) in wpml_languages" :value="lang">{{lang}} {{index}}</option>
</select>
What I want; I want the value attribute of the option element to be the language code (en/es) and the text displayed to be the Language name
I'm not sure how to access the object in the vue code for it to display in the way I want. I've tried:
<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>
Any help is appreciated

