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

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