Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions gooddata-sdk/gooddata_sdk/catalog/workspace/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,12 @@ def get_texts_to_translate(
# Hack: translate titles in free-form, which is not processed intentionally by this SDK
for section in dashboard.content["layout"]["sections"]:
for item in section["items"]:
title = item["widget"].get("title")
description = item["widget"].get("description")
widget = item["widget"]
title = widget.get("title")
description = widget.get("description")
self.add_title_description(to_translate, title, description)
if widget.get("type") == "richText" and "content" in widget:
to_translate.add(widget["content"])
if "header" in section:
title = section["header"].get("title")
description = section["header"].get("description")
Expand Down
Loading