Skip to content

Commit

Permalink
Merge pull request #10 from devgateway/IREXCM-8-language-switcher
Browse files Browse the repository at this point in the history
IREXCM-8 Transalations support in Superset research
  • Loading branch information
mpostelnicu authored Aug 31, 2023
2 parents 4e27bf2 + c5efb7a commit 38574dc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ SUPERSET_FEATURE_PUBLIC_ROLE_LIKE="Gamma"
SUPERSET_FEATURE_EMBEDDED_SUPERSET=true
SUPERSET_FEATURE_WTF_CSRF_ENABLED=false
SUPERSET_FEATURE_HORIZONTAL_FILTER_BAR=true
SUPERSET_LOAD_EXAMPLES=no
SUPERSET_LOAD_EXAMPLES=no
BABEL_DEFAULT_LOCALE = "ro"
3 changes: 2 additions & 1 deletion docker/.env-non-dev
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ SUPERSET_FEATURE_PUBLIC_ROLE_NAME="Gamma"
SUPERSET_FEATURE_PUBLIC_ROLE_LIKE="Gamma"
SUPERSET_FEATURE_EMBEDDED_SUPERSET=true
SUPERSET_FEATURE_WTF_CSRF_ENABLED=false
SUPERSET_FEATURE_HORIZONTAL_FILTER_BAR=true
SUPERSET_FEATURE_HORIZONTAL_FILTER_BAR=true
BABEL_DEFAULT_LOCALE = "ro"
2 changes: 1 addition & 1 deletion docker/docker-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ apt install -y chromium

cd /app/superset-frontend
npm install -f --no-optional --global webpack webpack-cli
npm install -f --no-optional
export NODE_OPTIONS=--max_old_space_size=8192 && npm install -f --no-optional

echo "Running frontend"
npm run dev
2 changes: 2 additions & 0 deletions docker/pythonpath_dev/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ class CeleryConfig:
"ro": {"flag": "ro", "name": "Romanian"}
}

BABEL_DEFAULT_LOCALE = "ro"

#
# Optionally import superset_config_docker.py (which will have been included on
# the PYTHONPATH) in order to allow for local settings to be overridden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ const FilterControls: FC<FilterControlsProps> = ({
: t(
'Applied filters: %s',
activeOverflowedFiltersInScope
.map(filter => filter.name ? t(filter.name) : '')
.join(', '),
.map(filter => (filter.name ? t(filter.name) : ''))
.join(', '),
)
}
dropdownContent={
Expand Down

0 comments on commit 38574dc

Please sign in to comment.