website-frontend/templates/language-menu.html
2023-07-08 13:06:26 +02:00

11 lines
No EOL
517 B
HTML

{% load i18n menu_tags %}
{% if languages|length > 1 %}
<select id="language-chooser" style="width: auto; display: inline-block;" class="form-select form-select-sm" aria-label="Default select example">
{% for language in languages %}
<option value="{{ language.0 }}" data-url="{% page_language_url language.0 %}" {% if current_language == language.0 %}selected="selected"{% endif %} class="lang{% if current_language == language.0 %} active{% endif %}">
{{ language.1 }}
</option>
{% endfor %}
</select>
{% endif %}