Skip to content

Commit

Permalink
Add support for english translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Keda87 committed Oct 23, 2015
1 parent 2ed92df commit b1d19c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odoa.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ODOA(object):

TOTAL_PAGES = 159
BASE_API = 'https://raw.githubusercontent.com/semarketir/quranjson/master/source'
SUPPORTED_LANGUAGES = ['id']
SUPPORTED_LANGUAGES = ['id', 'en']

def get_random_surah(self, lang='id'):
"""
Expand Down Expand Up @@ -71,4 +71,4 @@ def __get_translation(self, surah, ayat, lang):
except IOError:
return None
else:
return translation
return translation

0 comments on commit b1d19c8

Please sign in to comment.