{% load i18n %}

{% if group.language_selection %}
  <em>{% translate "All languages" %}</em>
{% else %}
  {% for language in group.languages.all %}
    <span class="badge" title="{{ language.code }}">{{ language }}</span>
  {% endfor %}
{% endif %}
