Merge pull request #25387 from ssiyad/fix/ux/onboarding_desc_translation

fix(ux): translate onboarding step description
This commit is contained in:
Akhil Narang 2024-03-13 12:26:03 +05:30 committed by GitHub
commit 3bf3a954dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -338,6 +338,7 @@ class Workspace:
for doc in onboarding_doc.get_steps():
step = doc.as_dict().copy()
step.label = _(doc.title)
step.description = _(doc.description)
if step.action == "Create Entry":
step.is_submittable = frappe.db.get_value(
"DocType", step.reference_document, "is_submittable", cache=True