From 2fc4ae99488d2b9d92f9330c361f5cd0a160f86c Mon Sep 17 00:00:00 2001 From: lockbitchat Date: Wed, 13 Aug 2025 22:42:22 -0400 Subject: [PATCH] Updated all text to English --- src/network/EnhancedSecureWebRTCManager.js | 8 ++++---- src/session/PayPerSessionManager.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/network/EnhancedSecureWebRTCManager.js b/src/network/EnhancedSecureWebRTCManager.js index 0665dc1..62da7d2 100644 --- a/src/network/EnhancedSecureWebRTCManager.js +++ b/src/network/EnhancedSecureWebRTCManager.js @@ -1,6 +1,6 @@ class EnhancedSecureWebRTCManager { constructor(onMessage, onStatusChange, onKeyExchange, onVerificationRequired, onAnswerError = null) { - // Проверяем доступность глобального объекта + // Check the availability of the global object if (!window.EnhancedSecureCryptoUtils) { throw new Error('EnhancedSecureCryptoUtils is not loaded. Please ensure the module is loaded first.'); } @@ -15,7 +15,7 @@ class EnhancedSecureWebRTCManager { this.onStatusChange = onStatusChange; this.onKeyExchange = onKeyExchange; this.onVerificationRequired = onVerificationRequired; - this.onAnswerError = onAnswerError; // Callback для ошибок обработки ответа + this.onAnswerError = onAnswerError; // Callback for response processing errors this.isInitiator = false; this.connectionAttempts = 0; this.maxConnectionAttempts = 3; @@ -376,7 +376,7 @@ class EnhancedSecureWebRTCManager { hasMacKey: !!this.macKey, hasMetadataKey: !!this.metadataKey }); - throw new Error('Отсутствуют ключи для расшифровки legacy сообщения'); + throw new Error('Missing keys to decrypt legacy message'); } const decryptedData = await window.EnhancedSecureCryptoUtils.decryptMessage( @@ -645,7 +645,7 @@ class EnhancedSecureWebRTCManager { macKeyAlgorithm: this.macKey?.algorithm?.name, metadataKeyAlgorithm: this.metadataKey?.algorithm?.name }); - throw new Error('Недействительные типы ключей после вывода'); + throw new Error('Invalid key types after output'); } // PFS: Initialize key version tracking diff --git a/src/session/PayPerSessionManager.js b/src/session/PayPerSessionManager.js index 8957590..ce77432 100644 --- a/src/session/PayPerSessionManager.js +++ b/src/session/PayPerSessionManager.js @@ -60,7 +60,7 @@ class PayPerSessionManager { }); if (!healthCheck.ok) { - throw new Error(`LNbits API недоступен: ${healthCheck.status}`); + throw new Error(`LNbits API is not available: ${healthCheck.status}`); } const response = await fetch(`${this.verificationConfig.apiUrl}/api/v1/payments`, {