Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_translation
  • Reference
  • Frontend developer
  • Localization and translation
  • Template filter
  • Boolean
  • Language code

is_rtl

Module

mod_translation

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

Related documentation

Filters

language_sort_localized

Sort a list of language codes or map with languages on their localized name in the currently selected language. This is useful for…

Filters

trans_languages

Return a list of all languages present in the given translated text ( #trans{} record).

Filters

media_for_language

Filter a list of media items by their medium_language property, return the best matching with the current or given language. Only visible…

Filters

language_dir

Return rtl or ltr depening on the direction of the language.

Filters

language

Return the language the resource (or translated text) will be displayed in.

Filters

language_sort

Sort a list of language codes or map with languages on their sort key. Return a list of {Code, LanguageProps} pairs.

Filters

set_url_language

Change the language of an URL to another language. Useful to generate alternative URLs for a page.

Filters

survey_is_history_back

Test whether a survey respondent may return to the previous page in a history.

Filters

is_user

Test if a resource is a user.

GitHub © 2026 Zotonic