From e14042ea28471afb1754e75a43e2e236ad5b80fd Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 14 Jan 2023 18:40:16 +0100 Subject: [PATCH 1/5] chinese language code --- packages/frontend/locales/{zh_CN.json => zh.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/frontend/locales/{zh_CN.json => zh.json} (100%) diff --git a/packages/frontend/locales/zh_CN.json b/packages/frontend/locales/zh.json similarity index 100% rename from packages/frontend/locales/zh_CN.json rename to packages/frontend/locales/zh.json From e7750699ccc8d54590ecd02546c21b52266de31b Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 14 Jan 2023 18:40:45 +0100 Subject: [PATCH 2/5] chose: changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd6c4b4..e2813e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [2.2.0] - 2023-01-13 +## [2.2.0] - 2023-01-14 ### Changed - Default port is now 8000, not 5000. - Moved to generic encryption library `occulto`. +### Fixed + +- Bad chinese language code. + ### Security - Updated dependencies. From 7ee1b8370a41de5b76504393ba8ccd11e87aa6ef Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 14 Jan 2023 18:54:27 +0100 Subject: [PATCH 3/5] update deps --- packages/frontend/package.json | 4 ++-- pnpm-lock.yaml | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 45fb968..bf25bed 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@lokalise/node-api": "^9.5.0", "@sveltejs/adapter-static": "^1.0.2", - "@sveltejs/kit": "^1.0.13", + "@sveltejs/kit": "^1.1.0", "@types/dompurify": "^2.4.0", "@types/file-saver": "^2.0.5", "@zerodevx/svelte-toast": "^0.7.2", @@ -32,7 +32,7 @@ "copy-to-clipboard": "^3.3.3", "dompurify": "^2.4.3", "file-saver": "^2.0.5", - "occulto": "2.0.0-rc.10", + "occulto": "2.0.0", "pretty-bytes": "^6.0.0", "qrious": "^4.0.2" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3fba746..ecdf823 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,7 +22,7 @@ importers: '@fontsource/fira-mono': ^4.5.10 '@lokalise/node-api': ^9.5.0 '@sveltejs/adapter-static': ^1.0.2 - '@sveltejs/kit': ^1.0.13 + '@sveltejs/kit': ^1.1.0 '@types/dompurify': ^2.4.0 '@types/file-saver': ^2.0.5 '@zerodevx/svelte-toast': ^0.7.2 @@ -31,7 +31,7 @@ importers: dompurify: ^2.4.3 dotenv: ^16.0.3 file-saver: ^2.0.5 - occulto: 2.0.0-rc.10 + occulto: 2.0.0 pretty-bytes: ^6.0.0 qrious: ^4.0.2 svelte: ^3.55.1 @@ -46,13 +46,13 @@ importers: copy-to-clipboard: 3.3.3 dompurify: 2.4.3 file-saver: 2.0.5 - occulto: 2.0.0-rc.10 + occulto: 2.0.0 pretty-bytes: 6.0.0 qrious: 4.0.2 devDependencies: '@lokalise/node-api': 9.5.0 - '@sveltejs/adapter-static': 1.0.2_@sveltejs+kit@1.0.13 - '@sveltejs/kit': 1.0.13_svelte@3.55.1+vite@4.0.4 + '@sveltejs/adapter-static': 1.0.2_@sveltejs+kit@1.1.0 + '@sveltejs/kit': 1.1.0_svelte@3.55.1+vite@4.0.4 '@types/dompurify': 2.4.0 '@types/file-saver': 2.0.5 '@zerodevx/svelte-toast': 0.7.2 @@ -589,16 +589,16 @@ packages: engines: {node: '>=14.16'} dev: true - /@sveltejs/adapter-static/1.0.2_@sveltejs+kit@1.0.13: + /@sveltejs/adapter-static/1.0.2_@sveltejs+kit@1.1.0: resolution: {integrity: sha512-pUxDCzYN4qFF5xb4l5xblMkzRS616EiuQGCqVGXM6rS+a9R8DTGfTutIQcPhDEAndrP4RIMPJzo/OhQtioWp2A==} peerDependencies: '@sveltejs/kit': ^1.0.0 dependencies: - '@sveltejs/kit': 1.0.13_svelte@3.55.1+vite@4.0.4 + '@sveltejs/kit': 1.1.0_svelte@3.55.1+vite@4.0.4 dev: true - /@sveltejs/kit/1.0.13_svelte@3.55.1+vite@4.0.4: - resolution: {integrity: sha512-AuHqAojgg+tL9lXSQKkB1VjadFDW+vwOoWLq+BU8pAgFvZMlh3rGCyEdPbEgE3V6pwWn/+37AOrA8fILMHWzRQ==} + /@sveltejs/kit/1.1.0_svelte@3.55.1+vite@4.0.4: + resolution: {integrity: sha512-SSAOaEpiBtR7l4Y/jN+AGHonpZUQ2tcl4yhE7S+rqSJA8iw8dxiWPVpNe7JI3N70hXVylezTj9I6P3cykq8a1Q==} engines: {node: ^16.14 || >=18} hasBin: true requiresBuild: true @@ -848,7 +848,7 @@ packages: dev: true /concat-map/0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} dev: true /convert-source-map/1.9.0: @@ -1658,8 +1658,8 @@ packages: object-keys: 1.1.1 dev: true - /occulto/2.0.0-rc.10: - resolution: {integrity: sha512-eWLUZ9P5u345gZn9/9tqdnxWvypmIMUjLQSSeb5bfIRLJrl306wWq6G2+fmWxFLSB6B0nUQQjHiSKOP8+vXcxg==} + /occulto/2.0.0: + resolution: {integrity: sha512-eLzE3RgVyo/Epi2ZNLRocWoq75IVSenLd31wQoxp9uJQIpxgpfLg0D7xgfLG0qFYMQxvVHLSHlpRDM2pufM72w==} engines: {node: '>=16', npm: please-use-pnpm, pnpm: '7', yarn: please-use-pnpm} dev: false From c2462074202955147c5dbb24f39c8b2ebdbe4067 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 19:21:06 +0100 Subject: [PATCH 4/5] Bump tokio from 1.24.1 to 1.25.0 in /packages/backend (#75) Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.24.1 to 1.25.0. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.24.1...tokio-1.25.0) --- updated-dependencies: - dependency-name: tokio dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/backend/Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/Cargo.lock b/packages/backend/Cargo.lock index b2198bd..8fe4aea 100644 --- a/packages/backend/Cargo.lock +++ b/packages/backend/Cargo.lock @@ -1207,9 +1207,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.24.1" +version = "1.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" +checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" dependencies = [ "autocfg", "bytes", From 9aaad5b910e5fd83f29ece1fa3016b43acb516a6 Mon Sep 17 00:00:00 2001 From: luolongfei Date: Thu, 2 Mar 2023 16:55:50 +0800 Subject: [PATCH 5/5] update zh.json file. (#79) --- packages/frontend/locales/zh.json | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/frontend/locales/zh.json b/packages/frontend/locales/zh.json index fc26c35..910575b 100644 --- a/packages/frontend/locales/zh.json +++ b/packages/frontend/locales/zh.json @@ -6,12 +6,12 @@ "create": "创建", "loading": "加载中", "mode": "模式", - "views": "{n, plural, =0 {可查看次数} =1 {1 次查看} other {# 次查看}}", - "minutes": "{n, plural, =0 {有效期(分钟)} =1 {1 分钟} other {# 分钟}}", + "views": "{n, plural, =0 {可读次数} =1 {1 次查看} other {# 次查看}}", + "minutes": "{n, plural, =0 {有效期(分钟)} =1 {1 分钟} other {# 分钟}}", "max": "最大值", "share_link": "分享链接", - "copy_clipboard": "复制到剪切版", - "copied_to_clipboard": "已复制到剪切板", + "copy_clipboard": "复制到粘贴板", + "copied_to_clipboard": "已成功复制到粘贴板", "encrypting": "加密", "decrypting": "解密", "uploading": "上传", @@ -19,33 +19,33 @@ "qr_code": "二维码" }, "home": { - "intro": "一键轻松发送 完全加密的 密信或者文件。只需创建一个密信然后分享链接。", + "intro": "飞鸽传书,一键传输完全加密的密信或文件,阅后即焚。", "explanation": "该密信会在{type}后失效。", "new_note": "新建密信", - "new_note_notice": "可用性警示:
由于加密鸽的所有数据是全部保存在内存中的,所以如果加密鸽的可用内存被用光了那么它将会删除最早的密信以释放内存,因此不保证该密信的可用性。
(一般情况下是您应该是不会遇到这个问题,只是警示一下。)", + "new_note_notice": "提醒:
密信保存在内存中,如果内存满了,则最早的密信将被删除以释放内存,因此不保证该密信的可用性。一般不会出现这种情况,无需担心。", "errors": { - "note_to_big": "无法创建密信,这个密信太大了!", - "note_error": "无法创建密信,请再试一遍。", - "max": "最大文件大小: {n}", - "empty_content": "密信为空!" + "note_to_big": "创建失败,密信过大。", + "note_error": "创建失败,请稍后重试。", + "max": "次数上限:{n}", + "empty_content": "密信不能为空。" }, "messages": { - "note_created": "注释创建。" + "note_created": "密信创建成功。" } }, "show": { "errors": { - "not_found": "该密信无法被找到或者它已经被删除了!", - "decryption_failed": "密钥错误!您可能不小心粘贴了一个不完整的链接或者正在尝试破解该密信!但无论如何,该密信已被销毁!", - "unsupported_type": "不支持的票据类型。" + "not_found": "密信不存在,可能已被查看或删除。", + "decryption_failed": "密钥错误,无法查看。", + "unsupported_type": "不支持的类型。" }, - "explanation": "点击下方的按钮可以查看密信,如果它到达了限制将会被删除", + "explanation": "点击下方按钮即可查看密信,阅后即焚。", "show_note": "查看密信", - "warning_will_not_see_again": "您将无法再次查看该密信", + "warning_will_not_see_again": "你将无法再次查看该密信,请尽快复制到粘贴板。", "download_all": "下载全部" }, "file_upload": { "selected_files": "已选中的文件", "no_files_selected": "没有文件被选中" } -} +} \ No newline at end of file