src/Front/Templates/_includes/_lang_changer.html.twig line 1
<div class="lang js-lang ico-dark justify-c">
{% set languages = journal is not null ? journal.languages|map(lang => lang.value) : ['pl', 'en'] %}
<img src="{{ asset('assets/img/flag-' ~ app.request.locale ~ '.svg') }}" alt="">
<select id="languageChanger" autocomplete="off">
{% for language in languages %}
{% if app.request.get('_route') %}
<option value="{{ app.request.locale == language
? path(app.request.get('_route'), app.request.get('_route_params'))
: lang_changer.Url(language)
}}" {% if app.request.locale == language %}selected="selected"{% endif %}>
{{ language|upper }}
</option>
{% endif %}
{% endfor %}
</select>
</div>