{% if locales|length > 1 %}
<div class="" id="sylius-locale-selector" {{ sylius_test_html_attribute('locale-selector') }}>
<span class="text sylius-active-locale" {{ sylius_test_html_attribute('active-locale') }}>
{# {{ active|sylius_locale_name }} #}
<i class="{{ active|sylius_locale_country|lower }} flag"></i>
</span>
<i class="angle down icon"></i>
<div class="menu">
{% for code in locales %}
{% if code is not same as(active) %}
{% if active|sylius_locale_country|lower == 'fr' %}
<a href="{{ app_get_localurl() }}" class='us'>
{% else %}
<a href="{{ app_get_localurl() }}" class='fr'>
{% endif %}
{# <a href="{{ path('sylius_shop_switch_locale', {'code': code}) }}" class="item sylius-available-locale" {{ sylius_test_html_attribute('available-locale') }}> #}
{# {{ code|sylius_locale_name }} #}
<i class="{{ code|sylius_locale_country|lower }} flag"></i>
</a>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}