From afaaa2bd0e628dd77a73df9fdd884f6c4a4ac046 Mon Sep 17 00:00:00 2001 From: NPM Update Bot Date: Wed, 21 Feb 2024 00:12:01 +0000 Subject: [PATCH 1/4] npm: package updates --- src/package-lock.json | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/src/package-lock.json b/src/package-lock.json index 38152cdc..3b476441 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -1505,14 +1505,14 @@ } }, "node_modules/es-set-tostringtag": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", - "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", + "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.2", - "has-tostringtag": "^1.0.0", - "hasown": "^2.0.0" + "get-intrinsic": "^1.2.4", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.1" }, "engines": { "node": ">= 0.4" @@ -4832,16 +4832,16 @@ } }, "node_modules/typed-array-byte-offset": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.1.tgz", - "integrity": "sha512-tcqKMrTRXjqvHN9S3553NPCaGL0VPgFI92lXszmrE8DMhiDPLBYLlvo8Uu4WZAAX/aGqp/T1sbA4ph8EWjDF9Q==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", + "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", "dev": true, "dependencies": { - "available-typed-arrays": "^1.0.6", + "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.7", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-proto": "^1.0.1", + "has-proto": "^1.0.3", "is-typed-array": "^1.1.13" }, "engines": { @@ -4852,14 +4852,20 @@ } }, "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.5.tgz", + "integrity": "sha512-yMi0PlwuznKHxKmcpoOdeLwxBoVPkqZxd7q2FgMkmD3bNwvF5VW0+UlUQ1k1vmktTu4Yu13Q0RIxEP8+B+wloA==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", + "call-bind": "^1.0.7", "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" From e4f9a37933f92ae6648da1bf4826a3c696ffa5ef Mon Sep 17 00:00:00 2001 From: nashi23 Date: Wed, 21 Feb 2024 16:47:45 +0800 Subject: [PATCH 2/4] Add Simplified Chinese & Traditional Chinese Language --- README.md | 2 +- docker-compose.yml | 2 +- src/www/js/i18n.js | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index daa71e42..61eda10f 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ These options can be configured by setting environment variables using `-e KEY=" | `WG_POST_UP` | `...` | `iptables ...` | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L20) for the default value. | | `WG_PRE_DOWN` | `...` | - | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L27) for the default value. | | `WG_POST_DOWN` | `...` | `iptables ...` | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L28) for the default value. | -| `LANG` | `en` | `de` | Web UI language (Supports: en, ru, tr, no, pl, fr, de, ca, es, vi, nl, is,). | +| `LANG` | `en` | `de` | Web UI language (Supports: en, ru, tr, no, pl, fr, de, ca, es, vi, nl, is, chs, cht,). | > If you change `WG_PORT`, make sure to also change the exposed port. diff --git a/docker-compose.yml b/docker-compose.yml index 54ba38a4..9dfc3e8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: wg-easy: environment: # Change Language: - # (Supports: en, ru, tr, no, pl, fr, de, ca, es, pt) + # (Supports: en, ru, tr, no, pl, fr, de, ca, es, pt, chs, cht) - LANG=de # ⚠️ Required: # Change this to your host's public address diff --git a/src/www/js/i18n.js b/src/www/js/i18n.js index 214f40f3..3e060fa6 100644 --- a/src/www/js/i18n.js +++ b/src/www/js/i18n.js @@ -380,4 +380,58 @@ const messages = { // eslint-disable-line no-unused-vars madeBy: 'Feito por', donate: 'Doar', }, + chs: { + name: '名称', + password: '密码', + signIn: '登录', + logout: '退出', + updateAvailable: '有新版本可用!', + update: '更新', + clients: '客户端', + new: '新建', + deleteClient: '删除客户端', + deleteDialog1: '您确定要删除', + deleteDialog2: '此操作无法撤销。', + cancel: '取消', + create: '创建', + createdOn: '创建于 ', + lastSeen: '最后访问于 ', + totalDownload: '总下载: ', + totalUpload: '总上传: ', + newClient: '新建客户端', + disableClient: '禁用客户端', + enableClient: '启用客户端', + noClients: '目前没有客户端。', + showQR: '显示二维码', + downloadConfig: '下载配置', + madeBy: '由', + donate: '捐赠', + }, + cht: { + name: '名字', + password: '密碼', + signIn: '登入', + logout: '登出', + updateAvailable: '有新版本可用!', + update: '更新', + clients: '客戶', + new: '新建', + deleteClient: '刪除客戶', + deleteDialog1: '您確定要刪除', + deleteDialog2: '此操作無法撤銷。', + cancel: '取消', + create: '建立', + createdOn: '建立於 ', + lastSeen: '最後訪問於 ', + totalDownload: '總下載: ', + totalUpload: '總上傳: ', + newClient: '新客戶', + disableClient: '禁用客戶', + enableClient: '啟用客戶', + noClients: '目前沒有客戶。', + showQR: '顯示二維碼', + downloadConfig: '下載配置', + madeBy: '由', + donate: '捐贈', + }, }; From a951f0eb2610e6edf37c56990584798a578f342f Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Wed, 21 Feb 2024 10:22:57 +0100 Subject: [PATCH 3/4] i18n.js: fixup remove trailing space --- src/www/js/i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/js/i18n.js b/src/www/js/i18n.js index 3e060fa6..10ce5cc9 100644 --- a/src/www/js/i18n.js +++ b/src/www/js/i18n.js @@ -412,7 +412,7 @@ const messages = { // eslint-disable-line no-unused-vars password: '密碼', signIn: '登入', logout: '登出', - updateAvailable: '有新版本可用!', + updateAvailable: '有新版本可用!', update: '更新', clients: '客戶', new: '新建', From 1412f63dfa3730f135e1a4b0cbd2785d5cc270e0 Mon Sep 17 00:00:00 2001 From: NPM Update Bot Date: Wed, 21 Feb 2024 09:25:10 +0000 Subject: [PATCH 4/4] npm: package updates --- src/package-lock.json | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/package-lock.json b/src/package-lock.json index 3b476441..14d1b04c 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -2978,12 +2978,15 @@ } }, "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", + "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", "dev": true, "dependencies": { - "call-bind": "^1.0.2" + "call-bind": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4814,15 +4817,16 @@ } }, "node_modules/typed-array-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", - "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", + "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", + "call-bind": "^1.0.7", "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13" }, "engines": { "node": ">= 0.4"