diff options
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/web.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index 04a1e88..253d99c 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -267,8 +267,8 @@ def load_i18n_templates() -> Any: templates = Jinja2Templates( directory="fatcat_scholar/templates", extensions=["jinja2.ext.i18n"], ) - templates.env.install_gettext_translations(translations, newstyle=True) - templates.env.install_gettext_callables( + templates.env.install_gettext_translations(translations, newstyle=True) # type: ignore + templates.env.install_gettext_callables( # type: ignore locale_gettext(translations), locale_ngettext(translations), newstyle=True, ) # remove a lot of whitespace in HTML output with these configs |