Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kvchitrapu committed Apr 1, 2023
1 parent d9f32ae commit 0c9623f
Show file tree
Hide file tree
Showing 4 changed files with 1,559 additions and 1,489 deletions.
8 changes: 4 additions & 4 deletions ambuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ def create_app(config_env: str):
# Database
_initialize_db_session(app, config_env)

# Extensions
babel = Babel(app)

@babel.localeselector
def get_locale():
return session.get("locale", config_spec.BABEL_DEFAULT_LOCALE)

# Extensions
babel = Babel(app)
babel.init_app(app, locale_selector=get_locale)

login_manager = auth_manager.create_login_manager()
login_manager.init_app(app)

Expand Down
Loading

0 comments on commit 0c9623f

Please sign in to comment.