Add various other naturally RTL languages for automatic page progression setting

This commit is contained in:
Kovid Goyal 2025-01-11 10:00:14 +05:30
parent 4a2869e2b1
commit 7919f5e9f9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -614,4 +614,5 @@ def localize_website_link(url):
def is_rtl_lang(lang):
lang = canonicalize_lang(lang)
return lang and lang in ('ara', 'heb')
# Aramaic, Arabic, Azeri, Hebrew, Dhivehi, Sorani, Urdu, Farsi
return lang and lang in ('ara', 'heb', 'aze', 'div', 'arc', 'syc', 'myz', 'ckb', 'urd', 'fas')