bug fix, translate extension button
| @@ -6,6 +6,7 @@ import { POPUP_RESULT, POPUP_TYPE, Popup, callGenericPopup } from './popup.js'; | |||
| 6 | import { renderTemplate, renderTemplateAsync } from './templates.js'; | 6 | import { renderTemplate, renderTemplateAsync } from './templates.js'; |
| 7 | import { isSubsetOf, setValueByPath } from './utils.js'; | 7 | import { isSubsetOf, setValueByPath } from './utils.js'; |
| 8 | import { getContext } from './st-context.js'; | 8 | import { getContext } from './st-context.js'; |
| 9 | import { translate } from "./i18n.js"; | ||
| 9 | export { | 10 | export { |
| 10 | getContext, | 11 | getContext, |
| 11 | getApiUrl, | 12 | getApiUrl, |
| @@ -367,6 +368,8 @@ async function addExtensionsButtonAndMenu() { | |||
| 367 | $('#leftSendForm').append(buttonHTML); | 368 | $('#leftSendForm').append(buttonHTML); |
| 368 | 369 | ||
| 369 | const button = $('#extensionsMenuButton'); | 370 | const button = $('#extensionsMenuButton'); |
| 371 | const title = translate(button.attr('title')); | ||
| 372 | button.attr('title', title); | ||
| 370 | const dropdown = $('#extensionsMenu'); | 373 | const dropdown = $('#extensionsMenu'); |
| 371 | //dropdown.hide(); | 374 | //dropdown.hide(); |
| 372 | 375 | ||