From 2cd6305fe8433000863d46ea58255b828766aaac Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Tue, 9 Jan 2024 23:22:25 +0100 Subject: [PATCH] wireguard translations --- web/assets/js/model/outbound.js | 6 +++--- web/html/xui/form/outbound.html | 18 +++++++++--------- web/translation/translate.en_US.toml | 4 +++- web/translation/translate.fa_IR.toml | 2 ++ web/translation/translate.ru_RU.toml | 2 ++ web/translation/translate.vi_VN.toml | 2 ++ web/translation/translate.zh_Hans.toml | 2 ++ 7 files changed, 23 insertions(+), 13 deletions(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 7d9c1e2a..756634fb 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -983,9 +983,9 @@ Outbound.WireguardSettings.Peer = class extends CommonClass { return { publicKey: this.publicKey, preSharedKey: this.psk.length>0 ? this.psk : undefined, - allowedIPs: this.allowedIPs ? this.allowedIPs.split(",") : [], + allowedIPs: this.allowedIPs ? this.allowedIPs.split(",") : undefined, + endpoint: this.endpoint, keepAlive: this.keepAlive?? undefined, - endpoint: this.endpoint }; } -} \ No newline at end of file +}; \ No newline at end of file diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 5a6c9b04..842bcfe2 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -68,9 +68,6 @@ diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index a0763df8..b400feb1 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -388,10 +388,12 @@ "bridge" = "Bridge" "portal" = "Portal" "intercon" = "Interconnection" + +[pages.xray.wireguard] "secretKey" = "Secret Key" "publicKey" = "Public Key" "allowedIPs" = "Allowed IPs" -"endpoint" = "Endpoint" +"endpoint" = "End Point" "psk" = "PreShared Key" "domainStrategy" = "Domain Strategy" diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index 61352c1c..7bd055b5 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -387,6 +387,8 @@ "bridge" = "پل" "portal" = "پورتال" "intercon" = "اتصال میانی" + +[pages.xray.wireguard] "secretKey" = "کلید شخصی" "publicKey" = "کلید عمومی" "allowedIPs" = "آی‌پی‌های مجاز" diff --git a/web/translation/translate.ru_RU.toml b/web/translation/translate.ru_RU.toml index b99e1656..c465b2e7 100644 --- a/web/translation/translate.ru_RU.toml +++ b/web/translation/translate.ru_RU.toml @@ -388,6 +388,8 @@ "bridge" = "Мост" "portal" = "Портал" "intercon" = "Соединение" + +[pages.xray.wireguard] "secretKey" = "Секретный ключ" "publicKey" = "Открытый ключ" "allowedIPs" = "Разрешенные IP-адреса" diff --git a/web/translation/translate.vi_VN.toml b/web/translation/translate.vi_VN.toml index f63542e4..02a4d76e 100644 --- a/web/translation/translate.vi_VN.toml +++ b/web/translation/translate.vi_VN.toml @@ -388,6 +388,8 @@ "bridge" = "Liên kết" "portal" = "Cổng thông tin" "intercon" = "Kết nối" + +[pages.xray.wireguard] "secretKey" = "Chìa khoá bí mật" "publicKey" = "Khóa công khai" "allowedIPs" = "IP được phép" diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml index 98f5040e..22f75775 100644 --- a/web/translation/translate.zh_Hans.toml +++ b/web/translation/translate.zh_Hans.toml @@ -388,6 +388,8 @@ "bridge" = "桥" "portal" = "门户" "intercon" = "互连" + +[pages.xray.wireguard] "secretKey" = "密钥" "publicKey" = "公钥" "allowedIPs" = "允许的 IP"