fix: translation of dashboard chart and number card label

This commit is contained in:
Nihantra C. Patel 2024-04-04 12:26:50 +05:30 committed by GitHub
parent 0f15ecf1c2
commit 51a87ae33b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}