summaryrefslogtreecommitdiffstats
path: root/ogcp/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/__init__.py')
-rw-r--r--ogcp/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ogcp/__init__.py b/ogcp/__init__.py
index 23d6769..5d5f3e4 100644
--- a/ogcp/__init__.py
+++ b/ogcp/__init__.py
@@ -20,4 +20,8 @@ csrf = CSRFProtect(app)
bootstrap = Bootstrap(app)
+@babel.localeselector
+def localeselector():
+ return app.config.get('LANG', 'en')
+
import ogcp.views