Локализовать интерфейс SHiNE на русский и английский

This commit is contained in:
AidarKC
2026-11-09 16:45:21 +03:00
parent 526941eb33
commit 405b9a91a7
133 changed files with 12464 additions and 3296 deletions
@@ -1,3 +1,4 @@
import { t } from '../i18n/index.js';
import { iconHtml } from './ui-icon.js';
function resolveElement(value) {
return typeof value === 'function' ? value() : value;
@@ -30,7 +31,7 @@ export function attachScrollToBottomButton({
button.type = 'button';
button.className = 'scroll-to-bottom-btn';
button.title = title;
button.setAttribute('aria-label', 'Прокрутить ленту вниз');
button.setAttribute('aria-label', t('screens.scroll_to_bottom_button.text_001'));
button.tabIndex = -1;
button.append(buildArrowIcon());
target.append(button);