{% get_current_language_bidi %} Tag

says whether the active language is right-to-left.

Utility As Markdown

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

Documentation

True when the active language is written right to left, so a template can flip its layout without hardcoding a list of languages.

Template

{% load i18n %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
<html dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">

More Utility Tags

All Utility Tags


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

Send Feedback

Official Documentation
This page last updated on August 20, 2026