Skip to content

Commit

Permalink
fix yearn#199
Browse files Browse the repository at this point in the history
save files as Unicode
  • Loading branch information
mmsardar authored Aug 2, 2022
1 parent 3055791 commit 1c481c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/toLocale.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
else:
data['localization'][locale] = {"description": data["description"]}

with open(filePath, 'w') as f:
json.dump(data, f, indent=2)
with open(filePath, 'w', encoding='utf-8') as f:
json.dump(data, f, indent=2, ensure_ascii=False)
print("The localization has been updated")

0 comments on commit 1c481c7

Please sign in to comment.