{% comment %} snapadmin/language_switcher.html — admin-bar language selector A minimal, accessible dropdown that switches the active locale on the fly via Django's built-in set_language view. Requires: * "django.conf.urls.i18n" mounted (provides the 'set_language' URL), * django.middleware.locale.LocaleMiddleware in MIDDLEWARE, * more than one entry in settings.LANGUAGES. Renders nothing when only one language is configured. {% endcomment %} {% load i18n %} {% get_current_language as CURRENT_LANGUAGE %} {% get_available_languages as AVAILABLE_LANGUAGES %} {% if AVAILABLE_LANGUAGES|length > 1 %}
{% endif %}