SBIN2010 commented on issue #12768:
URL: https://github.com/apache/superset/issues/12768#issuecomment-2376141202

   I suggest this option, it works well for `me`
   Add it to config.py:
   ```
   class SupersetIndexView(IndexView):   
       @expose("/lang/<string:locale>")
       def patch_flask_locale(self, locale):
           from flask import redirect, request, session
           referrer = request.headers.get("Referer")
           session["locale"] = locale
           return redirect(referrer)
   
   FAB_INDEX_VIEW = 
f"{SupersetIndexView.__module__}.{SupersetIndexView.__name__}"
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to