Add Polish as a supported language
This commit is contained in:
parent
7e7bb184ad
commit
bc09d12d8b
@ -38,7 +38,7 @@ def get_locale():
|
|||||||
Selects the best locale based on values sent by the browser.
|
Selects the best locale based on values sent by the browser.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
supported_languages = ['en', 'hu']
|
supported_languages = ['en', 'hu', 'pl']
|
||||||
|
|
||||||
if 'l' in request.args and request.args['l'].lower() in supported_languages:
|
if 'l' in request.args and request.args['l'].lower() in supported_languages:
|
||||||
return request.args['l'].lower()
|
return request.args['l'].lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user