Skip to content
Snippets Groups Projects
Commit 3471fb8b authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update sams_hub.py _conext_processor to pass test_session_language_used

parent 7024bd29
No related branches found
No related tags found
No related merge requests found
from flask import Flask, request
from flask import Flask, request, session
from .exceptions import (
ManifestDefaultLanguageMissing
, DefaultLanguageDictMissing
......@@ -57,8 +57,8 @@ class SAMSHub:
def _context_processor(self):
return {
'app_lang': self.app(
request.blueprint).lang(self._config['default_language']
'app_lang': self.app(request.blueprint).lang(
session.get('language', self._config['default_language'])
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment