I need to show a flag next to the language in the language dropdown menu. Here's the code snippet:
<b-dropdown-item v-for="language in availableLanguages" :key="language.name" :value="language.code">
<div class="d-flex">
<flag :iso="language.code"/>
<span>{{language.name}}</span>
</div>
</b-dropdown-item>
https://i.sstatic.net/nml2X.png
The flags are not displaying for English and Danish languages. The issue is that for English, the language code is "en" but the flag code is "gr". Is there a way to work around this without changing the backend API response?