diff --git a/erpnext/setup/doctype/employee/employee.js b/erpnext/setup/doctype/employee/employee.js index 4669a9d5b74..55dedea167b 100755 --- a/erpnext/setup/doctype/employee/employee.js +++ b/erpnext/setup/doctype/employee/employee.js @@ -89,8 +89,8 @@ frappe.ui.form.on("Employee", { let years = today.year() - doj.year(); if (years > 0) { content += `
${__( - "Today is their {0} Year Work Anniversary!", - [years] + "Today is their {0} Work Anniversary!", + [years === 1 ? __("{0} Year", [years]) : __("{0} Years", [years])] )}
`; } }