{% load i18n %}

<ul class="language-selector">
    <li class="active-language">
        {% get_language_info for current_page.language.code as lang %}
        <a href="{{ current_page.url }}">{{ lang.name_local }}</a>
    </li>
    {% for language, page in translations.items %}
    {% get_language_info for language.code as lang %}
    <li>
        <a href="{{ page.url }}">{{ lang.name_local }}</a>
    </li>
    {% endfor %}
</ul>
