@sparkelf/dsh-patch-session-export-chinese 0.1.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
+ # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
+ # after editing either side, bring the other along and re-record with:
4
+ # pnpm run verify-translation-pairing --write patches/npm/session-export-chinese/README.md
5
+ README.md: 1d30a07395bc755d01011c08e8681e0b29a1b55c
6
+ README.zh.md: 8d4f5d1bc5a9967bdce97fff081edc9174e09710
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # @sparkelf/dsh-patch-session-export-chinese
2
+
3
+ English | [中文](README.zh.md)
4
+
5
+ This data-only package replaces the mixed English `Session` wording in the official Simplified-Chinese Session export action and status dialog with the established Chinese term `会话`. English copy and export behavior are unchanged.
6
+
7
+ The target is exact official source revision `0a53fb55bea101816fa226bb964ae2bed71c343b`. The payload is applied before that source tree is built. The package has no JavaScript entry, lifecycle script, Cordis plugin, compatibility adapter, or alternate variant.
8
+
9
+ Retire this package when official DSH ships consistent Simplified-Chinese Session export copy.
package/README.zh.md ADDED
@@ -0,0 +1,9 @@
1
+ # @sparkelf/dsh-patch-session-export-chinese
2
+
3
+ [English](README.md) | 中文
4
+
5
+ 该data-only package把official简体中文会话导出按钮和状态对话框中混用的英文`Session`统一替换为既有中文术语`会话`。英文文案和导出行为保持不变。
6
+
7
+ target是exact official source revision `0a53fb55bea101816fa226bb964ae2bed71c343b`,payload在该source tree build前应用。本package没有JavaScript entry、lifecycle script、Cordis plugin、compatibility adapter或alternate variant。
8
+
9
+ official DSH发布统一的简体中文会话导出文案后,retire本package。
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "description": "Data-only exact official-source patch using consistent Simplified-Chinese Session export wording",
3
+ "dshPatch": {
4
+ "formatVersion": 1,
5
+ "variants": [
6
+ {
7
+ "dsh": ">=0.1.2-alpha.2",
8
+ "file": "./patches/session-export-chinese.patch",
9
+ "id": "session-export-simplified-chinese-copy",
10
+ "target": {
11
+ "baseRevision": "0a53fb55bea101816fa226bb964ae2bed71c343b",
12
+ "kind": "dsh-source",
13
+ "paths": [
14
+ "packages/session-query/session-log-export/src/client/"
15
+ ]
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ "files": [
21
+ "patches/*.patch"
22
+ ],
23
+ "license": "MIT",
24
+ "name": "@sparkelf/dsh-patch-session-export-chinese",
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "repository": {
29
+ "directory": "patches/npm/session-export-chinese",
30
+ "type": "git",
31
+ "url": "git+https://github.com/SparkElf/deepseek-harness-plus.git"
32
+ },
33
+ "type": "module",
34
+ "version": "0.1.0-rc.12"
35
+ }
@@ -0,0 +1,26 @@
1
+ diff --git a/packages/session-query/session-log-export/src/client/locales.ts b/packages/session-query/session-log-export/src/client/locales.ts
2
+ index 29989f3dd4d2cf20431cfdf2adaae09496fd8a6d..7e2e77e0e69ffaae958c15016244405eccd652a6 100644
3
+ --- a/packages/session-query/session-log-export/src/client/locales.ts
4
+ +++ b/packages/session-query/session-log-export/src/client/locales.ts
5
+ @@ -3,14 +3,14 @@ export const NS = 'session-log-download'
6
+
7
+ /** Simplified-Chinese Session export strings. */
8
+ export const zh = {
9
+ - 'header.action': 'Session 日志',
10
+ - 'dialog.preparingTitle': '正在导出 Session',
11
+ - 'dialog.preparingDescription': '正在准备包含当前 Session、子 Session 和附件的 ZIP 文件。',
12
+ - 'dialog.successTitle': 'Session 导出已开始下载',
13
+ - 'dialog.successDescription': '浏览器正在下载 Session ZIP 文件。',
14
+ - 'dialog.errorTitle': 'Session 导出失败',
15
+ + 'header.action': '会话日志',
16
+ + 'dialog.preparingTitle': '正在导出会话',
17
+ + 'dialog.preparingDescription': '正在准备包含当前会话、子会话和附件的 ZIP 文件。',
18
+ + 'dialog.successTitle': '会话导出已开始下载',
19
+ + 'dialog.successDescription': '浏览器正在下载会话 ZIP 文件。',
20
+ + 'dialog.errorTitle': '会话导出失败',
21
+ 'dialog.close': '关闭',
22
+ - 'dialog.commandFailed': '无法启动 Session 导出。',
23
+ + 'dialog.commandFailed': '无法启动会话导出。',
24
+ } as const
25
+
26
+ /** English Session export strings. */