bug fix, translate extension button

5b4adbacba8e7d909ab34a12b591769ce9653fb2

waht <qwerty@111.com>

1 files changed, +3 -0Showing whitespace changes
public/scripts/extensions.js+3 -0
@@ -6,6 +6,7 @@ import { POPUP_RESULT, POPUP_TYPE, Popup, callGenericPopup } from './popup.js';
66import { renderTemplate, renderTemplateAsync } from './templates.js';
77import { isSubsetOf, setValueByPath } from './utils.js';
88import { getContext } from './st-context.js';
9+import { translate } from "./i18n.js";
910export {
1011 getContext,
1112 getApiUrl,
@@ -367,6 +368,8 @@ async function addExtensionsButtonAndMenu() {
367368 $('#leftSendForm').append(buttonHTML);
368369
369370 const button = $('#extensionsMenuButton');
371+ const title = translate(button.attr('title'));
372+ button.attr('title', title);
370373 const dropdown = $('#extensionsMenu');
371374 //dropdown.hide();
372375