templates/bundles/SyliusShopBundle/Menu/_localeSwitch.html.twig line 1

Open in your IDE?
  1. {% if locales|length > 1 %}
  2.     <div class="ui top right pointing dropdown link item language-switcher" id="sylius-locale-selector" {{ sylius_test_html_attribute('locale-selector') }}>
  3.         <span class="text sylius-active-locale text-xs font-bold" {{ sylius_test_html_attribute('active-locale') }}>{{ active|upper }}</span>
  4.         <div class="menu language-menu">
  5.             {% for code in locales %}
  6.                 {% if code is not same as(active) %}
  7.                     <a href="{{ path('sylius_shop_switch_locale', {'code': code}) }}" class="item sylius-available-locale" {{ sylius_test_html_attribute('available-locale') }}>
  8.                     {{ code|upper }} - {{ code|sylius_locale_name }}
  9.                     </a>
  10.                 {% endif %}
  11.             {% endfor %}
  12.         </div>
  13.     </div>
  14. {% endif %}