fix: translation for sla description

This commit is contained in:
Jannat Patel 2021-12-08 18:12:09 +05:30
parent 3caa93c2c4
commit 7585a26d43

View file

@ -5,8 +5,9 @@ frappe.ready(function() {
callback: (data) => {
if (data.message) {
const intro_wrapper = $('#introduction .ql-editor.read-mode');
const sla_description = `<br><b>Note: Your request for account deletion will be fulfilled within ${data.message} days.</b>`;
intro_wrapper.html(intro_wrapper.html() + sla_description);
const sla_description = __("Note: Your request for account deletion will be fulfilled within {0} days.", [data.message])
const sla_description_wrapper = `<br><b>${sla_description}</b>`;
intro_wrapper.html(intro_wrapper.html() + sla_description_wrapper);
}
}
});