Skip to content

Commit

Permalink
Merge pull request #491 from openedx/bmtcril/fix_filter_loc
Browse files Browse the repository at this point in the history
  • Loading branch information
bmtcril authored Oct 25, 2023
2 parents 0dd92e6 + 50be682 commit b701447
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ def extract_text(asset, type):
if type == "dashboards":
strings.append(asset["dashboard_title"])

# Gets translatable fields from filters
for filter in asset["metadata"]["native_filter_configuration"]:
strings.append(filter["name"])

# Gets translatable fields from charts
for element in asset.get("position", {}).values():
if not isinstance(element, dict):
continue
Expand Down

0 comments on commit b701447

Please sign in to comment.