Skip to content

Commit

Permalink
[fix]some translation not work better (#9428)
Browse files Browse the repository at this point in the history
  • Loading branch information
venter-zhu authored Apr 2, 2020
1 parent f0f4f7e commit 621b481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/translations/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_language_pack(locale):
if not pack:
filename = DIR + "/{}/LC_MESSAGES/messages.json".format(locale)
try:
with open(filename) as f:
with open(filename, encoding="utf8") as f:
pack = json.load(f)
ALL_LANGUAGE_PACKS[locale] = pack
except Exception: # pylint: disable=broad-except
Expand Down

0 comments on commit 621b481

Please sign in to comment.