-
-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Hello, in here
https://github.com/plone/plone.restapi/blob/main/src/plone/restapi/services/navigation/get.py
we have the following snippet:
for tab in self.portal_tabs:
entry = {}
entry.update(
{
"path": "/".join((navtree_path, tab["id"])),
"description": tab["description"],
"@id": tab["url"],
}
)
if "review_state" in tab:
entry["review_state"] = json_compatible(tab["review_state"])
else:
entry["review_state"] = None
if "title" not in entry:
entry["title"] = tab.get("name") or tab.get("description") or tab["id"]
else:
# translate Home tab
entry["title"] = translate(
entry["title"], domain="plone", context=self.request
)
entry["title"] = safe_text(entry["title"])
ret[navtree_path].append(entry)
To me it seems we can never reach the "translate" path so in Volto the "Home" tab does not get translated.
Best,
Erkka
Metadata
Metadata
Assignees
Labels
No labels