2022-02-05 07:56:42 +00:00
|
|
|
<select class="language" id="language" name="language" aria-label="{{ _('Search language') }}">{{- '' -}}
|
2017-02-12 14:06:01 +00:00
|
|
|
<option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Default language') }}</option>
|
2022-03-16 17:07:00 +00:00
|
|
|
{%- for lang_id,lang_name,country_name,english_name,flag in language_codes | sort(attribute=1) -%}
|
2017-02-12 14:06:01 +00:00
|
|
|
<option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>
|
2022-03-16 17:07:00 +00:00
|
|
|
{% if flag %}{{ flag }} {% endif%} {{- lang_name }} {% if country_name %}({{ country_name }}) {% endif %}
|
2017-02-12 14:06:01 +00:00
|
|
|
</option>
|
|
|
|
{%- endfor -%}
|
|
|
|
</select>
|