mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fix(employee): correct work anniversary message pluralization
This commit is contained in:
@@ -89,8 +89,8 @@ frappe.ui.form.on("Employee", {
|
|||||||
let years = today.year() - doj.year();
|
let years = today.year() - doj.year();
|
||||||
if (years > 0) {
|
if (years > 0) {
|
||||||
content += `<div class="mb-1"><span class="indicator green"></span> ${__(
|
content += `<div class="mb-1"><span class="indicator green"></span> ${__(
|
||||||
"Today is their {0} Year Work Anniversary!",
|
"Today is their {0} Work Anniversary!",
|
||||||
[years]
|
[years === 1 ? __("{0} Year", [years]) : __("{0} Years", [years])]
|
||||||
)}</div>`;
|
)}</div>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user