summaryrefslogtreecommitdiff
path: root/talermerchantdemos/survey
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-04-22 14:03:09 +0200
committerFlorian Dold <florian@dold.me>2021-04-22 14:03:09 +0200
commit1576f3ea76329f4897411698016b09843e7d323a (patch)
tree9b5f2a57f1be6d30314fcc669608e367084678bd /talermerchantdemos/survey
parent58a059b94afee29767303b399b48629985a48942 (diff)
downloadtaler-merchant-demos-1576f3ea76329f4897411698016b09843e7d323a.tar.gz
taler-merchant-demos-1576f3ea76329f4897411698016b09843e7d323a.tar.bz2
taler-merchant-demos-1576f3ea76329f4897411698016b09843e7d323a.zip
locale selection
Diffstat (limited to 'talermerchantdemos/survey')
-rw-r--r--talermerchantdemos/survey/survey.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/talermerchantdemos/survey/survey.py b/talermerchantdemos/survey/survey.py
index 466c14d..d583114 100644
--- a/talermerchantdemos/survey/survey.py
+++ b/talermerchantdemos/survey/survey.py
@@ -66,6 +66,8 @@ BABEL_TRANSLATION_DIRECTORIES = "../translations"
app.config.from_object(__name__)
babel = Babel(app)
+babel.localeselector(get_locale)
+
INSTANCED_URL = urljoin(BACKEND_URL, f"instances/survey/")
LOGGER.info("Using translations from:" + ":".join(list(babel.translation_directories)))