From 1576f3ea76329f4897411698016b09843e7d323a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 22 Apr 2021 14:03:09 +0200 Subject: locale selection --- talermerchantdemos/survey/survey.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'talermerchantdemos/survey') 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))) -- cgit v1.2.3