mistercrunch commented on code in PR #34049:
URL: https://github.com/apache/superset/pull/34049#discussion_r2183963625


##########
superset/initialization/__init__.py:
##########
@@ -28,7 +28,7 @@
 from flask_appbuilder import expose, IndexView
 from flask_appbuilder.api import safe
 from flask_appbuilder.utils.base import get_safe_redirect
-from flask_babel import gettext as __, refresh
+from flask_babel import lazy_gettext as _, refresh

Review Comment:
   [optional] could add a comment above:
   ```
   # using lazy_gettext since initialization happens prior to the request scope 
and confuses flask-babel
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to