summaryrefslogtreecommitdiff
path: root/src/hydrilla/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla/server')
-rw-r--r--src/hydrilla/server/serve.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py
index 2ef30cb..4ec2a17 100644
--- a/src/hydrilla/server/serve.py
+++ b/src/hydrilla/server/serve.py
@@ -459,7 +459,13 @@ class HydrillaApp(flask.Flask):
if self.debug and os.environ.get('WERKZEUG_RUN_MAIN') != 'true':
return
- self.jinja_options['extensions'] = ['jinja2.ext.i18n']
+ self.jinja_options = {
+ **self.jinja_options,
+ 'extensions': [
+ *self.jinja_options.get('extensions', []),
+ 'jinja2.ext.i18n'
+ ]
+ }
self._hydrilla_translation = \
util.translation(here / 'locales', hydrilla_config['language'])