You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sofiankhalfi-kosmos (via GitHub)" <gi...@apache.org> on 2025/09/10 14:45:01 UTC

[I] Unable to configure French locale (number formatting) with Helm chart [superset]

sofiankhalfi-kosmos opened a new issue, #35088:
URL: https://github.com/apache/superset/issues/35088

   ### Bug description
   
   Hi,
   
   I’m using the Superset Helm chart version 0.14.2, and I’m trying to configure Superset so that numbers are displayed with the French locale (e.g., spaces as thousand separators and commas as decimals).
   
   I’ve tried adding configuration in superset_config.py (using BABEL_DEFAULT_LOCALE, DEFAULT_LOCALE, D3_FORMAT, NUMBER_FORMAT, etc.), but it doesn’t seem to affect the frontend number formatting.
   
   I also noticed that the extraAppConfig value does not seem to exist or be supported in chart 0.14.2.
   
   Questions:
   
   Is locale configuration (e.g., DEFAULT_LOCALE=fr-FR) supported in the Helm chart 0.14.2?
   
   If not, from which chart version is this supported?
   
   What is the recommended way to enforce French number formatting when deploying with Helm?
   
   ### Screenshots/recordings
   
   <img width="508" height="459" alt="Image" src="https://github.com/user-attachments/assets/35d6d255-6442-4a19-b9d4-7513cce6df89" />
   
   <img width="417" height="419" alt="Image" src="https://github.com/user-attachments/assets/7f97d41c-e901-41e8-bb81-253868c01eea" />
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
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-unsubscribe@superset.apache.org.apache.org

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


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


Re: [I] Unable to configure French locale (number formatting) with Helm chart [superset]

Posted by "msyavuz (via GitHub)" <gi...@apache.org>.
msyavuz closed issue #35088: Unable to configure French locale (number formatting) with Helm chart
URL: https://github.com/apache/superset/issues/35088


-- 
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-unsubscribe@superset.apache.org

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


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


Re: [I] Unable to configure French locale (number formatting) with Helm chart [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #35088:
URL: https://github.com/apache/superset/issues/35088#issuecomment-3275331432

   <!-- Answer -->
   Locale configuration for frontend number formatting (like French-style spaces for thousands and commas for decimals) is not supported in the Superset Helm chart 0.14.2. This version only allows backend config overrides via `superset_config.py` (using `configOverrides`), and does not support `extraAppConfig` or any mechanism to inject frontend-specific settings through Helm values or templates. Setting `BABEL_DEFAULT_LOCALE`, `DEFAULT_LOCALE`, or similar variables only affects backend translations, not how numbers are formatted in the UI [[source]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/helm/superset/README.md).
   
   To enforce French number formatting in charts and dashboards, you should set the `D3_FORMAT` dictionary in `superset_config.py` (for example: `D3_FORMAT = {"decimal": ",", "thousands": " ", "grouping": [3], "currency": ["", ""]}`), then restart all Superset pods and clear your browser cache. This will update number formatting in the UI, but not in CSV/Excel exports, which always use US formatting [[source]](https://github.com/apache/superset/issues/34295).
   
   There is currently no Helm chart version that supports injecting frontend locale or number formatting config (like `extraAppConfig`) out of the box. If you need to enforce frontend locale settings beyond what `D3_FORMAT` provides, you would need to customize the Superset image or wait for future Helm chart support [[source]](https://github.com/apache/superset/issues/32698).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/e3cc04e2-81b6-46f7-9ef2-8ae007f67679?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e3cc04e2-81b6-46f7-9ef2-8ae007f67679?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e3cc04e2-81b6-46f7-9ef2-8ae007f67679?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e3cc04e2-81b6-46f7-9ef2-8ae007f67679?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e3cc04e2-81b6-46f7-9ef2-8ae007f67679?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e3cc04e2-81b6-46f7-9ef2-8ae007f67679?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e3cc04e2-81b6-46f7-9ef2-8ae007f67679?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35088)


-- 
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-unsubscribe@superset.apache.org

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


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


Re: [I] Unable to configure French locale (number formatting) with Helm chart [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #35088:
URL: https://github.com/apache/superset/issues/35088#issuecomment-3275464753

   <!-- Answer -->
   Your D3_FORMAT settings in superset_config.py are the key to controlling French number formatting in the Superset UI. For these settings to take effect, make sure your D3_FORMAT dictionary looks like this:
   
   ```python
   D3_FORMAT = {
       "decimal": ",",
       "thousands": " ",
       "grouping": [3],
       "currency": ["", " €"]
   }
   ```
   
   After updating, restart all Superset pods and clear your browser cache. To confirm your config is loaded, open your browser dev tools and check that `window.bootstrap_data.common.d3_format` matches your settings on any Superset page. If it doesn't, double-check that your superset_config.py is mounted correctly and that the SUPERSET_CONFIG_PATH or SUPERSET_CONFIG environment variable points to it [[source]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py).
   
   Note: This only affects number formatting in the UI—CSV/Excel exports will still use US-style formatting [[source]](https://github.com/apache/superset/discussions/34568). The Helm chart 0.14.2 does not support extraAppConfig or frontend config injection, so this is the only supported method for locale-aware number formatting in the frontend [[source]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/helm/superset/README.md).
   
   If you still don't see the expected formatting, check for typos in your config, ensure the config is loaded, and verify that no other overrides are present. Let me know if you need help troubleshooting further!
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/4e00d4a7-5a3d-4836-b58d-87f0e7f1a970?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/4e00d4a7-5a3d-4836-b58d-87f0e7f1a970?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/4e00d4a7-5a3d-4836-b58d-87f0e7f1a970?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/4e00d4a7-5a3d-4836-b58d-87f0e7f1a970?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4e00d4a7-5a3d-4836-b58d-87f0e7f1a970?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/4e00d4a7-5a3d-4836-b58d-87f0e7f1a970?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4e00d4a7-5a3d-4836-b58d-87f0e7f1a970?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35088)


-- 
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-unsubscribe@superset.apache.org

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


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


Re: [I] Unable to configure French locale (number formatting) with Helm chart [superset]

Posted by "msyavuz (via GitHub)" <gi...@apache.org>.
msyavuz commented on issue #35088:
URL: https://github.com/apache/superset/issues/35088#issuecomment-3275807542

   This seems like configuration debugging. Converting it to discussion for now but let me know if you think this is an issue with superset


-- 
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-unsubscribe@superset.apache.org

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


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


Re: [I] Unable to configure French locale (number formatting) with Helm chart [superset]

Posted by "sofiankhalfi-kosmos (via GitHub)" <gi...@apache.org>.
sofiankhalfi-kosmos commented on issue #35088:
URL: https://github.com/apache/superset/issues/35088#issuecomment-3275423308

   here is my values in my superset_config.py
   
   <img width="315" height="236" alt="Image" src="https://github.com/user-attachments/assets/c5528f64-2222-4f44-acc5-44a598091c42" />


-- 
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-unsubscribe@superset.apache.org

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


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