From cae7822ce30b9071c3372ac6a55d47626680ceb8 Mon Sep 17 00:00:00 2001 From: mihalin Date: Mon, 11 Apr 2022 16:59:42 +0300 Subject: [PATCH] fix for prev --- server/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/custom.py b/server/custom.py index a3d995c..b3f5997 100644 --- a/server/custom.py +++ b/server/custom.py @@ -24,7 +24,7 @@ _redis: ty.Optional[Redis] = None def _get_translator(message: types.Message) -> ty.Callable: - return translators.get(message.from_user.locale, _) + return translators.get(message.from_user.locale.language, _) async def init_redis():