mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Move translation to HTML template
This commit is contained in:
@@ -7,7 +7,7 @@ import { renderTemplate, renderTemplateAsync } from './templates.js';
|
||||
import { delay, isSubsetOf, setValueByPath } from './utils.js';
|
||||
import { getContext } from './st-context.js';
|
||||
import { isAdmin } from './user.js';
|
||||
import { t,translate } from './i18n.js';
|
||||
import { t } from './i18n.js';
|
||||
import { debounce_timeout } from './constants.js';
|
||||
|
||||
export {
|
||||
@@ -416,8 +416,6 @@ async function addExtensionsButtonAndMenu() {
|
||||
$('#leftSendForm').append(buttonHTML);
|
||||
|
||||
const button = $('#extensionsMenuButton');
|
||||
const title = translate(button.attr('title'));
|
||||
button.attr('title', title);
|
||||
const dropdown = $('#extensionsMenu');
|
||||
let isDropdownVisible = false;
|
||||
|
||||
|
@@ -1 +1 @@
|
||||
<div id="extensionsMenuButton" style="display: none;" class="fa-solid fa-magic-wand-sparkles interactable" title="Extensions" /></div>
|
||||
<div id="extensionsMenuButton" style="display: none;" class="fa-solid fa-magic-wand-sparkles interactable" title="Extensions" data-i18n="Extensions" /></div>
|
||||
|
Reference in New Issue
Block a user