is_rtl

Check if the given language is a rtl or ltr language.

Example:

{% if z_language|is_rtl %}
    You are browsing in an RTL language
{% endif %}

It currently returns true only for Arabic (ar), Farsi (fa) and Hebrew (he).

Edit on GitHub

Translation language

Referred by

Filters

Filters transform template variables before they are rendered.