{% load i18n %}
<form class="btn2 select" action="{% url 'change-language' %}" method="post" onchange='this.form.submit()'>
    {% csrf_token %}
    <select name="language" onchange='this.form.submit()'>
        {% get_current_language as LANGUAGE_CODE_CURRENT %}
        {% get_available_languages as LANGUAGES %}
        {% for language in LANGUAGES %}
            <option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE_CURRENT %} selected{% endif %}>
                {{ language.0|language_name_local }}
            </option>
        {% endfor %}
    </select>
    <!--<input type="submit" value={% translate "change" %}>-->
</form>