fix(employee): correct work anniversary message pluralization

This commit is contained in:
Krishna Shirsath
2026-03-09 16:06:55 +05:30
parent 2b8a4a9b5f
commit be819eb876

View File

@@ -89,8 +89,8 @@ frappe.ui.form.on("Employee", {
let years = today.year() - doj.year();
if (years > 0) {
content += `<div class="mb-1"><span class="indicator green"></span> ${__(
"Today is their {0} Year Work Anniversary!",
[years]
"Today is their {0} Work Anniversary!",
[years === 1 ? __("{0} Year", [years]) : __("{0} Years", [years])]
)}</div>`;
}
}