diff options
-rw-r--r-- | sugar_network_webui/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network_webui/app.py b/sugar_network_webui/app.py index 1b07af6..4ad8e02 100644 --- a/sugar_network_webui/app.py +++ b/sugar_network_webui/app.py @@ -70,7 +70,7 @@ def event_stream(): @babel.localeselector def get_locale(): global WWW - if 'localhost' in request.host: + if ('localhost' in request.host) or ('127.0.0.1' in request.host): # we're probably embedded, get locale from env lang = locale.getdefaultlocale()[0].split('_')[0] logging.debug('Locale from env: %s' % lang) |