Skip to content

Commit

Permalink
sort lang by keys
Browse files Browse the repository at this point in the history
  • Loading branch information
FahadKhalid210 authored and regisb committed Dec 9, 2023
1 parent 93da95d commit 6aea052
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ instructions, because git commits are used to generate release notes:

<!-- scriv-insert-here -->

<a id='changelog-17.0.0'></a>
## v17.0.0 (2023-12-09)

- 💥[Feature] Upgrade to Quince. (by @Fahadkhalid210)
- 💥[Improvement] Convert the `course_blocks.graded` field from String to Boolean. (by @regisb)
- 💥[Improvement] Superset auto_sync roles updated. (by @FahadKhalid210)
- [Improvement] Added Typing to code, Makefile and test action to the repository and formatted code with Black and isort. (by @CodeWithEmad)

<a id='changelog-16.0.3'></a>
## v16.0.3 (2023-09-07)

Expand Down
1 change: 0 additions & 1 deletion changelog.d/20230911_180425_regis_fix_graded.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/20231115_145643_fahad.khalid_fahad_cairn_14.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/20231117_143539_fahad.khalid_nightly.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/20231118_181548_codewithemad_test_lint.md

This file was deleted.

13 changes: 8 additions & 5 deletions tutorcairn/templates/cairn/apps/superset/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,30 @@
# https://superset.apache.org/docs/installation/configuring-superset/#configuration-behind-a-load-balancer
ENABLE_PROXY_FIX = True

# Superset 3.0 ships with a default CSP (Content Security Policy) configuration via Talisman(Forces all connects to https)
# https://preset.io/blog/superset-3-0-release-notes/#default-csp-is-now-in-place

{% if not ENABLE_HTTPS %}
TALISMAN_ENABLED = False
{% endif %}

# Languages
# https://github.com/apache/superset/blob/dc575080d7e43d40b1734bb8f44fdc291cb95b11/superset/config.py#L324
available_languages = {
"de": {"flag": "de", "name": "German"},
"en": {"flag": "us", "name": "English"},
"es": {"flag": "es", "name": "Spanish"},
"it": {"flag": "it", "name": "Italian"},
"fr": {"flag": "fr", "name": "French"},
"zh": {"flag": "cn", "name": "Chinese"},
"it": {"flag": "it", "name": "Italian"},
"ja": {"flag": "jp", "name": "Japanese"},
"de": {"flag": "de", "name": "German"},
"ko": {"flag": "kr", "name": "Korean"},
"nl": {"flag": "nl", "name": "Dutch"},
"pt": {"flag": "pt", "name": "Portuguese"},
"pt_BR": {"flag": "br", "name": "Brazilian Portuguese"},
"ru": {"flag": "ru", "name": "Russian"},
"ko": {"flag": "kr", "name": "Korean"},
"sk": {"flag": "sk", "name": "Slovak"},
"sl": {"flag": "si", "name": "Slovenian"},
"nl": {"flag": "nl", "name": "Dutch"},
"zh": {"flag": "cn", "name": "Chinese"},
}
{#- https://github.com/apache/superset/blob/master/docs/docs/contributing/translations.mdx#enabling-language-selection #}
enabled_language_codes = ["en"]
Expand Down

0 comments on commit 6aea052

Please sign in to comment.