---
title: '{% get_current_language_bidi %}'
description: says whether the active language is right-to-left.
date: '2026-08-21'
categories:
  - Template Tag
  - Utility
canonical: https://coolify.djangotemplatetagsandfilters.com/tags/get_current_language_bidi/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/topics/i18n/translation/#std-templatetag-get_current_language_bidi
---

# {% get_current_language_bidi %}

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

## 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

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