Локализовать интерфейс 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,9 +1,10 @@
import { t } from '../i18n/index.js';
/** В выборе тарифа счётчик не показываем: он начинается с логина. */
export function createRegistrationStepper(step) {
const current = Math.max(1, Math.min(3, Number(step) || 1));
const wrapper = document.createElement('div');
wrapper.className = 'signup-stepper';
wrapper.setAttribute('aria-label', `Регистрация: шаг ${current} из 3`);
wrapper.setAttribute('aria-label', t('screens.registration_stepper.text_001', { value1: current }));
const dots = document.createElement('div');
dots.className = 'signup-stepper__dots';
for (let i = 1; i <= 3; i += 1) {
@@ -13,7 +14,7 @@ export function createRegistrationStepper(step) {
}
const label = document.createElement('span');
label.className = 'signup-stepper__label';
label.textContent = `Шаг ${current} из 3`;
label.textContent = t('screens.registration_stepper.text_002', { value1: current });
wrapper.append(dots, label);
return wrapper;
}