Skip to content

Commit

Permalink
Add the is rtl language function helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoteva15 committed Mar 6, 2024
1 parent ccb9ebb commit 00bfa39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckanext/iaea/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def get_main_organization():
except tk.ObjectNotFound:
return None

##The code from line 76 to line 77 has to be added for the data portal style for the Arabic group of languages

def is_rtl_language():
return lang() in config.get('ckan.i18n.rtl_languages', 'he ar fa_IR').split()

def get_helpers():
return {
Expand Down

0 comments on commit 00bfa39

Please sign in to comment.