added utf-8 encoding to avoid translation problem

This commit is contained in:
raphael60650 2021-05-24 00:16:26 +02:00
parent a8aa683270
commit 1d101cf26b

View file

@ -1,7 +1,7 @@
import json
def translate(self, text):
with open("./translation.json") as f:
with open("./translation.json", encoding="utf-8") as f:
translation = json.load(f)
if self.language in translation:
_lang_trad = translation[self.language]