---
title: '{% language %}'
description: switches the active language for a block.
date: '2026-08-21'
categories:
  - Template Tag
  - Utility
canonical: https://www.djangotemplatetagsandfilters.com/tags/language/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/topics/i18n/translation/#std-templatetag-language
---

# {% language %}

switches the active language for a block.

## Documentation

Renders a block in a specific language, whatever the request's language happens to be.

### Template

```django
{% load i18n %}
{% language "fr" %}
  {% translate "Welcome back" %}
{% endlanguage %}
```

Useful when one page has to carry more than one language at once — a notification previewed in the recipient's language rather than the sender's.
