Skip to content

Commit

Permalink
fix: Pull filter names as translatable strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bmtcril committed Oct 24, 2023
1 parent 8613255 commit 50be682
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 50be682

Please sign in to comment.