|
@@ -17,7 +17,7 @@ mail = Mail()
|
|
|
def get_locale():
|
|
|
if request.cookies.get('locale') in current_app.config['LANGUAGES'].keys():
|
|
|
return request.cookies.get('locale')
|
|
|
- return request.accept_languages.best_match(current_app.config['LANGUAGES'].keys())
|
|
|
+ return request.accept_languages.best_match(current_app.config['LANGUAGES'].keys(), 'en')
|
|
|
|
|
|
|
|
|
def create_app(config={}):
|