templates/front/layouts/languages.html.twig line 1

Open in your IDE?
  1. <form data-action="{{ path('change_locale') }}" method="post">
  2.     {# <div class=" ">         
  3.         <select   class="forDesktop language_switcher">
  4.             {% for language in languages %}
  5.                 <option value="{{ language.id }}" name="{{ language.id }}" {% if app.request.locale == language.code %} selected {% endif %} >
  6.                     {{ language.name }}
  7.                 </option>
  8.             {% endfor %}    
  9.         </select>
  10.         <select  class="forMobile language_switcher">
  11.             {% for language in languages %}
  12.                 <option value="{{ language.id }}" name="{{ language.id }}" {% if app.request.locale == language.code %} selected {% endif %}>
  13.                     {{ language.code | upper }}
  14.                 </option>
  15.             {% endfor %}    
  16.         </select>
  17.     </div>         #}
  18. </form>