diff --git a/src/editor/components/seButton.js b/src/editor/components/seButton.js index f6e5478a..1a2f2f26 100644 --- a/src/editor/components/seButton.js +++ b/src/editor/components/seButton.js @@ -1,3 +1,4 @@ +import { t } from '../locale.js'; const template = document.createElement('template'); // eslint-disable-next-line no-unsanitized/property template.innerHTML = ` @@ -75,7 +76,7 @@ export class ToolButton extends HTMLElement { case 'title': { const shortcut = this.getAttribute('shortcut'); - this.$div.setAttribute('title', `${newValue} ${shortcut ? `[${shortcut}]` : ''}`); + this.$div.setAttribute('title', `${t(newValue)} ${shortcut ? `[${t(shortcut)}]` : ''}`); } break; case 'style': diff --git a/src/editor/components/seFlyingButton.js b/src/editor/components/seFlyingButton.js index ddcc957b..330066c8 100644 --- a/src/editor/components/seFlyingButton.js +++ b/src/editor/components/seFlyingButton.js @@ -1,3 +1,4 @@ +import { t } from '../locale.js'; const template = document.createElement('template'); template.innerHTML = `