Skip to content

Commit

Permalink
Merge pull request #308 from openedx/jill/superset-default-locale
Browse files Browse the repository at this point in the history
docs: adds docs for LANGUAGE_CODE and BABEL_DEFAULT_LOCALE
  • Loading branch information
bmtcril authored Feb 20, 2025
2 parents bb5fc01 + e2a49fa commit 3372fa2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ Superset Localization
Superset offers very basic localization options. Aspects builds on those to bring localization to as many pieces of the user interface as is currently technically possible. The following settings impact localization options in Superset:

- ``SUPERSET_SUPPORTED_LANGUAGES`` - This list controls what is displayed in the main Superset UI, which users can select from manually. It only impacts the main Superset user interface (top level menus). Note that these are only language options, and do no include locale specific translations (ex: French is supported, Canadian French is not).
- ``LANGUAGE_CODE`` -- This setting provides the default language for Open edX services, and is passed through to Superset if its value is found in ``SUPERSET_SUPPORTED_LANGUAGES``, falling back to `"en"` if not.

If you need to specify a different default language for Superset, override the ``BABEL_DEFAULT_LOCALE`` setting by patching ``superset-config`` or ``superset-docker-config``.
- ``SUPERSET_DASHBOARD_LOCALES`` - This list is for the Aspects language options and include all of the default Open edX languages. Many languages are still being translated, and you may wish to disable some rather than having a mix of localized strings and English being displayed, or add other options. This setting controls the names of dashboards, charts, and columns, as well as some fields returned from the database.
- The patch ``superset-extra-asset-translations`` allows you to augment or replace the default translations provided with Aspects.

Expand Down

0 comments on commit 3372fa2

Please sign in to comment.