Ronkiro commented on issue #34058:
URL: https://github.com/apache/superset/issues/34058#issuecomment-3033929764

   I've added this to my `configOverrides` (to help Helm newbies like me)
   
   ```
   fix_i18n: |
       from superset.translations.utils import get_language_pack
       def override_bootstrap_locale(data):
           # If the session or user locale is 'pt_BR', force the frontend to 
use 'pt_BR'
           print("Overriding locale to pt_BR if necessary")
           print("Current locale in data:", data.get("locale"))
           if data.get("locale") == "pt":
               data["locale"] = "pt_BR"
               data["language_pack"] = get_language_pack('pt_BR')
           return data
       COMMON_BOOTSTRAP_OVERRIDES_FUNC = override_bootstrap_locale
   ```


-- 
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