made the locale option work

This commit is contained in:
ctih1 2025-07-25 23:19:24 +03:00
parent fe17dfb552
commit 5773e5d083

3
bot.py
View file

@ -48,6 +48,7 @@ def build_keys():
build_keys() build_keys()
logger = logging.getLogger("goober") logger = logging.getLogger("goober")
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
@ -66,6 +67,8 @@ settings = settings_manager.settings
splash_text: str = "" splash_text: str = ""
k.change_language(settings["locale"])
with open(settings["splash_text_loc"], "r", encoding="UTF-8") as f: with open(settings["splash_text_loc"], "r", encoding="UTF-8") as f:
splash_text = "".join(f.readlines()) splash_text = "".join(f.readlines())