Skip to content

Commit

Permalink
fix: 🌐 Fix multilanguage translation
Browse files Browse the repository at this point in the history
  • Loading branch information
TheManchineel committed Sep 23, 2023
1 parent 8cccb34 commit cd2a4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram_epson_printer_bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
LOCALE_DIR = path.join(path.dirname(__file__), "lang")
LANGUAGE = environ.get("TELEGRAM_BOT_LANGUAGE", "en")

with open(path.join(LOCALE_DIR, "en.json"), "r") as translations_file:
with open(path.join(LOCALE_DIR, f"{LANGUAGE}.json"), "r") as translations_file:
try:
translations: dict = json.load(translations_file)
except FileNotFoundError:
Expand Down

0 comments on commit cd2a4ee

Please sign in to comment.