fix: translation of dashboard chart and number card label
This commit is contained in:
parent
0f15ecf1c2
commit
51a87ae33b
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ export default class Widget {
|
|||
let base = this.title || this.label || this.name;
|
||||
let title = max_chars ? frappe.ellipsis(base, max_chars) : base;
|
||||
|
||||
this.title_field[0].innerHTML = `<span class="ellipsis" title="${title}">${title}</span>`;
|
||||
this.title_field[0].innerHTML = `<span class="ellipsis" title="${__(title)}">${__(title)}</span>`;
|
||||
if (max_chars) {
|
||||
this.title_field[0].setAttribute("title", this.title || this.label);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue