{% load i18n %} {% get_current_language as LANGUAGE_CODE %} {% if LANGUAGES|length > 1 %} {% comment %} It doesn't really have an AJAX handler, but we need to reload JS to get the new JS language file, and we can't do this in the AJAX framework {% endcomment %}
{% csrf_token %} {% for language_code, language_name in LANGUAGES %} {% if language_code != LANGUAGE_CODE %} {% endif %} {% endfor %}
{% endif %}