Merge pull request #26908 from mahsem/fix-translation-in-form_tour.js

fix: translation in form_tour.js
This commit is contained in:
Sumit Bhanushali 2024-07-13 11:23:11 +05:30 committed by GitHub
commit 8f2ca1973e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,8 +11,10 @@ frappe.ui.form.FormTour = class FormTour {
padding: 10,
overlayClickNext: true,
keyboardControl: true,
nextBtnText: "Next",
prevBtnText: "Previous",
nextBtnText: __("Next"),
prevBtnText: __("Previous"),
doneBtnText: __("Done"),
closeBtnText: __("Close"),
opacity: 0.25,
onHighlighted: (step) => {
// if last step is to save, then attach a listener to save button
@ -135,7 +137,11 @@ frappe.ui.form.FormTour = class FormTour {
return {
element,
name,
popover: { title, description, position: frappe.router.slug(position || "Bottom") },
popover: {
title: __(title),
description: __(description),
position: frappe.router.slug(position || "Bottom"),
},
onNext: on_next,
onPrevious: on_prev,
};