Локализовать интерфейс 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';
let activeDropdown = null;
@@ -82,7 +83,7 @@ export function createDropdownMenu({
const back = document.createElement('button');
back.type = 'button';
back.className = 'dropdown-menu__item dropdown-menu__back';
back.setAttribute('aria-label', `Назад: ${parentTitle}`);
back.setAttribute('aria-label', t('screens.dropdown_menu.text_001', { value1: parentTitle }));
back.innerHTML = `<span class="dropdown-menu__icon">${iconHtml('back')}</span>`;
const backLabel = document.createElement('span');
backLabel.textContent = parentTitle;