mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-23 15:37:50 +01:00
bug fix, translate extension button
This commit is contained in:
parent
6033c38b19
commit
5b4adbacba
@ -6,6 +6,7 @@ import { POPUP_RESULT, POPUP_TYPE, Popup, callGenericPopup } from './popup.js';
|
|||||||
import { renderTemplate, renderTemplateAsync } from './templates.js';
|
import { renderTemplate, renderTemplateAsync } from './templates.js';
|
||||||
import { isSubsetOf, setValueByPath } from './utils.js';
|
import { isSubsetOf, setValueByPath } from './utils.js';
|
||||||
import { getContext } from './st-context.js';
|
import { getContext } from './st-context.js';
|
||||||
|
import { translate } from "./i18n.js";
|
||||||
export {
|
export {
|
||||||
getContext,
|
getContext,
|
||||||
getApiUrl,
|
getApiUrl,
|
||||||
@ -367,6 +368,8 @@ async function addExtensionsButtonAndMenu() {
|
|||||||
$('#leftSendForm').append(buttonHTML);
|
$('#leftSendForm').append(buttonHTML);
|
||||||
|
|
||||||
const button = $('#extensionsMenuButton');
|
const button = $('#extensionsMenuButton');
|
||||||
|
const title = translate(button.attr('title'));
|
||||||
|
button.attr('title', title);
|
||||||
const dropdown = $('#extensionsMenu');
|
const dropdown = $('#extensionsMenu');
|
||||||
//dropdown.hide();
|
//dropdown.hide();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user