---
title: '{% get_available_languages %}'
description: lists the languages the site offers.
date: '2026-08-21'
categories:
  - Template Tag
  - Utility
canonical: https://djangotemplatetagsandfilters.com/tags/get_available_languages/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/topics/i18n/translation/#std-templatetag-get_available_languages
---

# {% get_available_languages %}

lists the languages the site offers.

## Documentation

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

### Template

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