fix: translate the sidebar item label

This commit is contained in:
sokumon 2025-12-04 01:14:46 +05:30
parent 4917f60301
commit e0f4d666ef

View file

@ -217,6 +217,7 @@ frappe.ui.Sidebar = class Sidebar {
if (items && items.length > 0) {
items.forEach((w) => {
if (!w.display_depends_on || frappe.utils.eval(w.display_depends_on)) {
w.label = __(w.label);
this.add_item(this.$items_container, w);
}
});