<div class="languageSelection"
     ng-cloak
     menu-title="{{ currentLanguageName|e('html_attr') }}"
     piwik-menudropdown>
    <a class="item" target="_blank" rel="noreferrer noopener"
        href="https://matomo.org/translations/">{{ 'LanguagesManager_AboutPiwikTranslations'|translate }}</a>
    {% for language in languages %}
        <a class="item {% if language.code == currentLanguageCode %}active{% endif %}"
           value="{{ language.code }}"
           title="{{ language.name }} ({{ language.english_name }})">{{ language.name }}</a>
    {% endfor %}

    <form action="index.php?module=LanguagesManager&amp;action=saveLanguage" method="post">
        <input type="hidden" name="language" id="language">
        {# During installation token_auth is not set #}
        {% if token_auth is defined %}<input type="hidden" name="token_auth" value="{{ token_auth }}"/>{% endif %}
    </form>
</div>
