diff --git a/scripts/utils.py b/scripts/utils.py index 32bb85697..a1e4c8c2b 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -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