fix: add label for translation in shortcut_widget.js

This commit is contained in:
mahsem 2024-12-05 08:30:02 +01:00 committed by GitHub
parent 75377aaaf5
commit 3dcc327060
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ export default class ShortcutWidget extends Widget {
const label = get_label();
let color = this.color && count ? this.color.toLowerCase() : "gray";
$(
`<div class="indicator-pill no-indicator-dot ellipsis ${color}">${label}</div>`
`<div class="indicator-pill no-indicator-dot ellipsis ${color}">${__(label)}</div>`
).appendTo(this.action_area);
$(frappe.utils.icon("es-line-arrow-up-right", "xs", "", "", "ml-2")).appendTo(