Локализовать интерфейс 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
+2 -1
View File
@@ -1,3 +1,4 @@
import { t } from '../i18n/index.js';
import { iconHtml } from './ui-icon.js';
// Шторка снизу (на широком экране — окно по центру) с заголовком и «✕».
@@ -22,7 +23,7 @@ export function openSheet({ title = '', content = null, className = '', onClose
const closeBtn = document.createElement('button');
closeBtn.type = 'button';
closeBtn.className = 'icon-btn sheet__close';
closeBtn.setAttribute('aria-label', 'Закрыть');
closeBtn.setAttribute('aria-label', t('screens.sheet.text_001'));
closeBtn.innerHTML = iconHtml('close');
head.append(heading, closeBtn);