templates/layout/navigation/language.html.twig line 1

Open in your IDE?
  1. {% set languages = localized_links(document, app.request.locale) %}
  2. {% if (languages|length) > 1 %}
  3.   <div class="flex items-center justify-end gap-5 md:gap-3">
  4.     {% for language in languages %}
  5.       <div class="text-black uppercase text-center {{
  6.         language.active
  7.           ? 'opacity-100'
  8.           : 'opacity-75'
  9.         }}">
  10.         <a class="flex items-center space-x-1"
  11.           rel="alternate"
  12.           href="{{ language.link }}"
  13.           hreflang="{{ language.abbreviation }}"
  14.           title="{{ language.abbreviation }}"
  15.           lang="{{ language.abbreviation }}">
  16.           <div class="overflow-hidden rounded-full">
  17.             {# prettier-ignore #}
  18.             {% include 'icons/'~ language.abbreviation ~'.svg.twig' ignore missing  with { class: "w-7 h-7 lg:w-5 lg:h-5" } %}
  19.           </div>
  20.           {# <div class="ml-4 text-sm font-bold text-white">
  21.             {{ language.abbreviation }}
  22.           </div> #}
  23.         </a>
  24.       </div>
  25.     {% endfor %}
  26.   </div>
  27. {% endif %}