mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Lazy_gettext in i18nMiddleware have enable_cache=False by default
This commit is contained in:
parent
58a8f43e2c
commit
546b852747
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class I18nMiddleware(BaseMiddleware):
|
|||
return translator.gettext(singular)
|
||||
return translator.ngettext(singular, plural, n)
|
||||
|
||||
def lazy_gettext(self, singular, plural=None, n=1, locale=None, enable_cache=True) -> LazyProxy:
|
||||
def lazy_gettext(self, singular, plural=None, n=1, locale=None, enable_cache=False) -> LazyProxy:
|
||||
"""
|
||||
Lazy get text
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue