Closed zytfo closed 3 months ago
Hello and thanks for your PR, but I18nMiddleware
is performed after AuthMiddleware
, which saves language_code
in db so this check may be unnecessary.
If I am missing something - tell me about it
Hello and thanks for your PR, but
I18nMiddleware
is performed afterAuthMiddleware
, which saveslanguage_code
in db so this check may be unnecessary. If I am missing something - tell me about it
Hi. Thanks for your reply. Indeed, I18nMiddleware
performs before AuthMiddleware
causing not having user while getting localization.
When the bot starts, the response of the first request should be according to the user's localization, not default