---
title: '|language_bidi'
description: says whether a language is right-to-left.
date: '2026-08-21'
categories:
  - Filter
  - Logic
canonical: https://djangotemplatetagsandfilters.com/filters/language_bidi/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/topics/i18n/translation/#std-templatefilter-language_bidi
---

# |language_bidi

says whether a language is right-to-left.

## Documentation

True when the given language is written right to left.

### Template

```django
{% load i18n %}
{% if lang.code|language_bidi %}dir="rtl"{% endif %}
```

The per-language answer to what `{% get_current_language_bidi %}` tells you about the active one.
