aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/web.py')
-rw-r--r--fatcat_scholar/web.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index 18299ee..b222eb9 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -225,14 +225,15 @@ def load_i18n_templates() -> Any:
)
templates = Jinja2Templates(
directory="fatcat_scholar/templates",
- extensions=["jinja2.ext.i18n", "jinja2.ext.do"],
- )
- 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,
+ #extensions=["jinja2.ext.i18n", "jinja2.ext.do"],
+ extensions=["jinja2.ext.do"],
)
+ #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
templates.env.trim_blocks = True
templates.env.lstrip_blocks = True