{% get_available_languages %} Tag

lists the languages the site offers.

Utility As Markdown

Argument(s)
as varname
Closing tag
Not required
Requires
{% load i18n %}

Documentation

Puts LANGUAGES into a variable as a list of (code, name) pairs — the raw material for a language switcher.

Template

{% load i18n %}
{% get_available_languages as LANGUAGES %}
{% for code, name in LANGUAGES %}
  <option value="{{ code }}">{{ name }}</option>
{% endfor %}

More Utility Tags

All Utility Tags


Did we get something wrong? Is there a use case for the get_available_languages tag that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on August 20, 2026