Skip to content

Commit

Permalink
mgr/dashboard: home: fix fallback to default language
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Dias <[email protected]>
  • Loading branch information
rjfd committed Oct 15, 2019
1 parent cb2d982 commit 4675116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/mgr/dashboard/controllers/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __call__(self, path, **params):
accept_lang_header = cherrypy.request.headers['Accept-Language']
langs = self._parse_accept_language(accept_lang_header)
else:
langs = [DEFAULT_LANGUAGE]
langs = [DEFAULT_LANGUAGE.lower()]
logger.debug("frontend language from headers: %s", langs)

base_dir = self._language_dir(langs)
Expand Down

0 comments on commit 4675116

Please sign in to comment.