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

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
+3 -2
View File
@@ -1,3 +1,4 @@
import { t } from '../i18n/index.js';
import { captureClientError } from './client-error-reporter.js';
import { defaultServerWs } from '../deploy-config.js';
@@ -69,7 +70,7 @@ export class WsJsonClient {
if (this.ws && this.ws.readyState === WebSocket.OPEN) return;
if (this.openPromise) return this.openPromise;
if (isMixedContentWs(this.url)) {
const error = new Error('Страница открыта по HTTPS, а сервер указан как ws://. Используйте wss:// адрес для Shine сервера.');
const error = new Error(t('remaining.websocket.this_page_uses_https_but_the_server_uses_ws_use_wss_for_th'));
captureClientError({
kind: 'ws_mixed_content_blocked',
message: error.message,
@@ -96,7 +97,7 @@ export class WsJsonClient {
}, { once: true });
ws.addEventListener('close', () => {
this.failPending('Соединение WebSocket закрыто');
this.failPending(t('remaining.websocket.websocket_connection_closed'));
});
ws.addEventListener('message', (event) => {