{% translate %} Tag

marks a string for translation.

Utility Most Useful As Markdown

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

Documentation

Translates a string using the active language.

Template

{% load i18n %}
<h1>{% translate "Welcome back" %}</h1>

The literal is what gets collected by makemessages and what a translator sees, so keep it a plain sentence rather than something assembled from pieces. For anything containing a variable or needing a plural, use {% blocktranslate %}.

More Utility Tags

All Utility Tags


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

Send Feedback

Official Documentation
This page last updated on August 20, 2026