{# {% if query|length > 1 %}
{% for item in query %}
{% if locale == item.slug %}
<a href="{{ item.slug == 'en' ? '/' : '/'~item.slug }}" class="active">{{ item.name }}</a>
{% else%}
<a href="{{ item.slug }}">{{ item.name }}</a>
{% endif %}
{% endfor %}
{% endif %} #}
{% if query|length > 1 %}
{# <a href="" class="active">{{ item.name }}</a>
<a href="">{{ item.name }}</a> #}
<ul class="buttons-lang">
{% for item in query %}
{% if locale == item.slug %}
<li class="button-lang">
{% if item.media %}
<img src="{{ sonata_path(item.media, 'reference') }}" alt="">
{% endif %}
<i class="bi bi-chevron-down"></i>
</li>
{% endif %}
{% endfor %}
<ul class="lang-dropdown">
{% for item in query %}
{% if locale != item.slug %}
<li class="lang-dropdown-item">
<a class="button-lang" href="/{{ item.slug }}">
{% if item.media %}
<img src="{{ sonata_path(item.media, 'reference') }}" alt="">
{% endif %}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</ul>
{% endif %}