No more locations.locale in config

This commit is contained in:
2023-06-30 10:31:49 +02:00
parent f4e74b5bc6
commit eb23d3e9b6
4 changed files with 62 additions and 58 deletions

View File

@@ -100,11 +100,7 @@ class PyroClient(Client):
self.start_time: float = 0
self.bot_locale: BotLocale = BotLocale(
(
Path(self.config["locations"]["locale"])
if locales_root is None
else locales_root
)
(Path("locale") if locales_root is None else locales_root)
)
self.default_locale: str = self.bot_locale.default
self.locales: dict = self.bot_locale.locales