{# Language switcher. Included from both branches of the layout: the signed-in sidebar and the anonymous authentication page. Someone who cannot read the current language has to be able to change it *before* signing in, so this cannot live behind the login. Each language is written in its own language, for the same reason. #} {{ _('Language') }} {% for code in supported_locales %} {%- if code == current_locale %} {{ locale_names[code] }} {%- else %} {{ locale_names[code] }} {%- endif %} {%- if not loop.last %}{% endif %} {% endfor %}