Skip to content

feat(superset): add a chart locale parameter - #73

Merged
rpignolet merged 1 commit into
OKDP:mainfrom
alex-mabrouk:feat/superset-d3-locale
Sep 4, 2026
Merged

feat(superset): add a chart locale parameter#73
rpignolet merged 1 commit into
OKDP:mainfrom
alex-mabrouk:feat/superset-d3-locale

Conversation

@alex-mabrouk

@alex-mabrouk alex-mabrouk commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a locale parameter to the superset package, defaulting to en, plus a currency one. D3_FORMAT and D3_TIME_FORMAT are derived from CLDR through Babel, an existing Superset dependency

Two free-form parameters, d3Format and d3TimeFormat, are merged over the derived values for anything an instance wants to spell differently.

locale: en reproduce the current d3 defaults exactly, so existing instances are unaffected.

Related Issue

Fixes #72

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / chore
  • Breaking change

How to Test

Deploy a Superset Release built from this package with:

locale: fr
currency: EUR

On a dashboard

  • A KPI formatted with .1% should now display: 4,3 % instead of 4.3%
  • A date axis should also use the French format: 23/07/2026 instead of 7/23/2026

Checklist

  • I have tested my changes
  • Documentation updated if needed
  • If breaking change: migration path described above
  • I hereby declare this contribution to be licensed under the Apache License Version 2.0.
  • I hereby agree to grant TOSIT a copyright license to use my contributions.

@alex-mabrouk
alex-mabrouk requested review from a team August 29, 2026 16:39
@alex-mabrouk alex-mabrouk self-assigned this Aug 29, 2026
@alex-mabrouk alex-mabrouk added the enhancement New feature or request label Aug 29, 2026
apiVersion: v1alpha1
name: superset
tag: 6.0.0-p04
tag: 6.0.0-p05

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag: 6.0.0-p05
1.0.0 # x-release-please-version

This is to avoid changes related to release workflows

@rpignolet
rpignolet merged commit 082e702 into OKDP:main Sep 4, 2026
4 checks passed
@alex-mabrouk
alex-mabrouk deleted the feat/superset-d3-locale branch September 4, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support non-English number and date formats in the Superset package

4 participants