fix: translate the sidebar item label
This commit is contained in:
parent
4917f60301
commit
e0f4d666ef
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue