<select name="language" class="languageSelect">
    {% for language in cm_languages %}
        <option
            data-code="{{ language.code }}"
            value="{{ language.url }}"
            {% if language.selected %}
                selected
            {% endif %}
        >
            {{ language.name }}
        </option>
    {% endfor %}
</select>