Skip to content

Commit

Permalink
Add fi as default locale when none is set
Browse files Browse the repository at this point in the history
  • Loading branch information
natlibfi-max-grasbeck committed Apr 29, 2024
1 parent 55bc915 commit 6498288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@


def get_locale():
return request.args.get("lang")
return request.args.get("lang") or "fi"


babel = Babel(app, locale_selector=get_locale)
Expand Down

0 comments on commit 6498288

Please sign in to comment.