{% language %} Tag

switches the active language for a block.

Utility As Markdown

Argument(s)
language_code
Closing tag
Required — {% endlanguage %}
Requires
{% load i18n %}

Documentation

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

Template

{% 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.

More Utility Tags

All Utility Tags


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

Send Feedback

Official Documentation
This page last updated on August 20, 2026