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. 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", diff --git a/packages/frontend/locales/zh.json b/packages/frontend/locales/zh.json new file mode 100644 index 0000000..910575b --- /dev/null +++ b/packages/frontend/locales/zh.json @@ -0,0 +1,51 @@ +{ + "common": { + "note": "密信", + "file": "上传文件", + "advanced": "高级设置", + "create": "创建", + "loading": "加载中", + "mode": "模式", + "views": "{n, plural, =0 {可读次数} =1 {1 次查看} other {# 次查看}}", + "minutes": "{n, plural, =0 {有效期(分钟)} =1 {1 分钟} other {# 分钟}}", + "max": "最大值", + "share_link": "分享链接", + "copy_clipboard": "复制到粘贴板", + "copied_to_clipboard": "已成功复制到粘贴板", + "encrypting": "加密", + "decrypting": "解密", + "uploading": "上传", + "downloading": "下载", + "qr_code": "二维码" + }, + "home": { + "intro": "飞鸽传书,一键传输完全加密的密信或文件,阅后即焚。", + "explanation": "该密信会在{type}后失效。", + "new_note": "新建密信", + "new_note_notice": "提醒:
密信保存在内存中,如果内存满了,则最早的密信将被删除以释放内存,因此不保证该密信的可用性。一般不会出现这种情况,无需担心。", + "errors": { + "note_to_big": "创建失败,密信过大。", + "note_error": "创建失败,请稍后重试。", + "max": "次数上限:{n}", + "empty_content": "密信不能为空。" + }, + "messages": { + "note_created": "密信创建成功。" + } + }, + "show": { + "errors": { + "not_found": "密信不存在,可能已被查看或删除。", + "decryption_failed": "密钥错误,无法查看。", + "unsupported_type": "不支持的类型。" + }, + "explanation": "点击下方按钮即可查看密信,阅后即焚。", + "show_note": "查看密信", + "warning_will_not_see_again": "你将无法再次查看该密信,请尽快复制到粘贴板。", + "download_all": "下载全部" + }, + "file_upload": { + "selected_files": "已选中的文件", + "no_files_selected": "没有文件被选中" + } +} \ No newline at end of file diff --git a/packages/frontend/locales/zh_CN.json b/packages/frontend/locales/zh_CN.json deleted file mode 100644 index fc26c35..0000000 --- a/packages/frontend/locales/zh_CN.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "common": { - "note": "密信", - "file": "上传文件", - "advanced": "高级设置", - "create": "创建", - "loading": "加载中", - "mode": "模式", - "views": "{n, plural, =0 {可查看次数} =1 {1 次查看} other {# 次查看}}", - "minutes": "{n, plural, =0 {有效期(分钟)} =1 {1 分钟} other {# 分钟}}", - "max": "最大值", - "share_link": "分享链接", - "copy_clipboard": "复制到剪切版", - "copied_to_clipboard": "已复制到剪切板", - "encrypting": "加密", - "decrypting": "解密", - "uploading": "上传", - "downloading": "下载", - "qr_code": "二维码" - }, - "home": { - "intro": "一键轻松发送 完全加密的 密信或者文件。只需创建一个密信然后分享链接。", - "explanation": "该密信会在{type}后失效。", - "new_note": "新建密信", - "new_note_notice": "可用性警示:
由于加密鸽的所有数据是全部保存在内存中的,所以如果加密鸽的可用内存被用光了那么它将会删除最早的密信以释放内存,因此不保证该密信的可用性。
(一般情况下是您应该是不会遇到这个问题,只是警示一下。)", - "errors": { - "note_to_big": "无法创建密信,这个密信太大了!", - "note_error": "无法创建密信,请再试一遍。", - "max": "最大文件大小: {n}", - "empty_content": "密信为空!" - }, - "messages": { - "note_created": "注释创建。" - } - }, - "show": { - "errors": { - "not_found": "该密信无法被找到或者它已经被删除了!", - "decryption_failed": "密钥错误!您可能不小心粘贴了一个不完整的链接或者正在尝试破解该密信!但无论如何,该密信已被销毁!", - "unsupported_type": "不支持的票据类型。" - }, - "explanation": "点击下方的按钮可以查看密信,如果它到达了限制将会被删除", - "show_note": "查看密信", - "warning_will_not_see_again": "您将无法再次查看该密信", - "download_all": "下载全部" - }, - "file_upload": { - "selected_files": "已选中的文件", - "no_files_selected": "没有文件被选中" - } -}