Локализовать интерфейс 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
+3 -2
View File
@@ -1,3 +1,4 @@
import { t } from '../i18n/index.js';
import { openSheet } from './sheet.js';
// Пошаговое подтверждение перед публичной записью. Ни один шаг не выполняет сетевых запросов.
@@ -26,7 +27,7 @@ export function confirmConsentSteps({ title = 'Подтверждение', step
const cancelBtn = document.createElement('button');
cancelBtn.type = 'button';
cancelBtn.className = 'secondary-btn';
cancelBtn.textContent = 'Отмена';
cancelBtn.textContent = t('screens.consent_steps.text_001');
const nextBtn = document.createElement('button');
nextBtn.type = 'button';
nextBtn.className = 'primary-btn';
@@ -48,7 +49,7 @@ export function confirmConsentSteps({ title = 'Подтверждение', step
checkboxLabel.hidden = !step.accept;
checkboxText.textContent = step.accept || '';
nextBtn.disabled = Boolean(step.accept);
nextBtn.textContent = step.button || (stepIndex === steps.length - 1 ? 'Подтверждаю и продолжаю' : 'Понятно, дальше');
nextBtn.textContent = step.button || (stepIndex === steps.length - 1 ? t('screens.consent_steps.text_002') : t('screens.consent_steps.text_003'));
}
checkbox.addEventListener('change', () => { nextBtn.disabled = !checkbox.checked; });
cancelBtn.addEventListener('click', () => sheet.close());