Locale

The locale tag ensures that the content of the template remains in selected language

When printed with print tags, the locale tag returns the chosen language of the current user.

{{ locale }}

When using locale with logic tags, you can force a language and ignore the chosen user language.

{% t="Hello" nl:"Hallo" fr:"Bonjour" %}
 
{% locale "nl" %}
  {% t "Hello" %}
{% endlocale %}