Skip to content

Commit

Permalink
fix lang attr
Browse files Browse the repository at this point in the history
  • Loading branch information
BenyaminZojaji committed May 25, 2024
1 parent 8b06688 commit f5041a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Iran_cities_info/Iran_cities_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def get_completeData(lang: str='en'):
lang = en | fa
'''
absPath = pathlib.Path(__file__).parent.resolve()
file_path = os.path.join(f'{absPath}', 'assets', 'iran_cities_en.json')
file_path = os.path.join(f'{absPath}', 'assets', f'iran_cities_{lang}.json')

with open(file_path) as f:
return json.load(f)
Expand Down

0 comments on commit f5041a6

Please sign in to comment.