Move translation to HTML template

b4c275f9e4a211add06215593cc45266bcb387cc

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -4Showing whitespace changes
public/scripts/extensions.js+1 -3
@@ -7,7 +7,7 @@ import { renderTemplate, renderTemplateAsync } from './templates.js';
77import { delay, isSubsetOf, setValueByPath } from './utils.js';
88import { getContext } from './st-context.js';
99import { isAdmin } from './user.js';
1010import { t,translate } from './i18n.js';
1111import { debounce_timeout } from './constants.js';
1212
1313export {
@@ -416,8 +416,6 @@ async function addExtensionsButtonAndMenu() {
416416 $('#leftSendForm').append(buttonHTML);
417417
418418 const button = $('#extensionsMenuButton');
419- const title = translate(button.attr('title'));
420- button.attr('title', title);
421419 const dropdown = $('#extensionsMenu');
422420 let isDropdownVisible = false;
423421
public/scripts/templates/wandButton.html+1 -1
@@ -1 +1 @@
11<div id="extensionsMenuButton" style="display: none;" class="fa-solid fa-magic-wand-sparkles interactable" title="Extensions" data-i18n="Extensions" /></div>