Полностью поддерживает английский язык

This commit is contained in:
AidarKC
2026-11-10 14:02:34 +03:00
parent 405b9a91a7
commit 9c30b33b39
71 changed files with 2658 additions and 1445 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { t } from '../i18n/index.js';
/** Разделённые шаги V2: независимая проверка логина, затем email. */
import { authService } from '../state.js';
import { normalizeFullLogin } from './shine-namespace-service.js';
@@ -5,7 +6,7 @@ import { normalizeFullLogin } from './shine-namespace-service.js';
async function call(op, payload = {}) {
const response = await authService.ws.request(op, payload, op==='ConfirmFreeRegistration'?150000:18000);
if (response.status !== 200 || response.ok === false) {
const error=new Error(response.message || response.error || `${op}: ошибка сервера`);
const error=new Error(response.message || response.error || t('remaining.registration_api.server_error', { op }));
error.code=response.error || 'REGISTRATION_REQUEST_FAILED';
throw error;
}