Requires {% load i18n %}
Add {% load i18n %} near the top of any template that
uses {% trans %}. Without it Django does not
know the name and raises TemplateSyntaxError.
The original name for {% translate %}. Both are supported and do exactly the same thing; {% translate %} is the spelling to use in new templates, and this one is documented so an older codebase is still searchable here.
Template
{% load i18n %}
<h1>{% trans "Welcome back" %}</h1>
