fix: translation of buttons in the Form tour (#22055)

This commit is contained in:
bVisible 2023-08-17 07:21:27 +02:00 committed by GitHub
parent 4dad5428cf
commit 88c2e64899
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,8 +12,10 @@ frappe.ui.OnboardingTour = class OnboardingTour {
padding: 10,
overlayClickNext: false,
keyboardControl: true,
nextBtnText: "Next",
prevBtnText: "Previous",
nextBtnText: __("Next"),
prevBtnText: __("Previous"),
doneBtnText: __("Done"),
closeBtnText: __("Close"),
opacity: 0.5,
onHighlighted: (step) => {
frappe.ui.next_form_tour = step.options.step_info?.next_form_tour;