Skip to content

Commit

Permalink
Add various other naturally RTL languages for automatic page progress…
Browse files Browse the repository at this point in the history
…ion setting
  • Loading branch information
kovidgoyal committed Jan 11, 2025
1 parent 4a2869e commit 7919f5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calibre/utils/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 7919f5e

Please sign in to comment.