Skip to content

Commit

Permalink
fix bugs with babel integration
Browse files Browse the repository at this point in the history
  • Loading branch information
level09 committed Mar 29, 2024
1 parent e7ef691 commit 3a99db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enferno/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_app(config_object=Config):
register_commands(app, commands)
return app

def get_locale():
def locale_selector():
return 'en'

def register_extensions(app):
Expand All @@ -37,7 +37,7 @@ def register_extensions(app):
mail.init_app(app)
debug_toolbar.init_app(app)
session.init_app(app)
babel.init_app(app, get_locale=get_locale, default_domain="messages", default_locale="en")
babel.init_app(app, locale_selector=locale_selector, default_domain="messages", default_locale="en")
openai.init_app(app)
return None

Expand Down

0 comments on commit 3a99db6

Please sign in to comment.