@langlink/dsh-l10n 0.0.0-stage → 0.1.0
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 +21 -0
- package/README.md +14 -2
- package/cordis.patch.yml +5 -0
- package/dist/index.js +3974 -0
- package/dist/index.js.map +7 -0
- package/package.json +54 -4
- package/skills/l10n-inspect/SKILL.md +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langlink/dsh-l10n",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "LangLink localization toolsets for DeepSeek Harness (dsh): XLIFF/SDLXLIFF, TM/term matching, QA, translate/polish, OOXML extraction/backfill.",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/langlink-tech/langlink-harness-toolsets.git",
|
|
11
|
+
"directory": "packages/dsh-l10n"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"registry": "https://registry.npmjs.org/"
|
|
16
|
+
},
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=22",
|
|
19
|
+
"dsh": ">=0.2.1-rc.2 <0.3.0"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"dsh",
|
|
23
|
+
"localization",
|
|
24
|
+
"xliff",
|
|
25
|
+
"sdlxliff",
|
|
26
|
+
"translation",
|
|
27
|
+
"tm",
|
|
28
|
+
"qa"
|
|
29
|
+
],
|
|
30
|
+
"main": "dist/index.js",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": "./dist/index.js",
|
|
33
|
+
"./cordis.patch.yml": "./cordis.patch.yml"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"cordis.patch.yml",
|
|
38
|
+
"skills",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE"
|
|
41
|
+
],
|
|
42
|
+
"dsh": {
|
|
43
|
+
"bundle": {
|
|
44
|
+
"patch": "./cordis.patch.yml"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.2"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"htmlparser2": "^12.0.0",
|
|
52
|
+
"saxes": "^6.0.0",
|
|
53
|
+
"fflate": "^0.8.3",
|
|
54
|
+
"exceljs": "^4.4.0"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: l10n-inspect
|
|
3
|
+
description: Inspect a local XLIFF 1.2 or SDLXLIFF file without exposing its contents.
|
|
4
|
+
whenToUse: The user asks to check, analyze, summarize, or prepare a local XLIFF/SDLXLIFF/MQXLIFF file before translation, QA, or backfill.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 本地化文件检查(l10n_inspect)
|
|
8
|
+
|
|
9
|
+
当用户给出本地 XLIFF/SDLXLIFF 文件路径,先调用 `l10n_inspect` 获取结构摘要,不要凭文件名猜测。
|
|
10
|
+
|
|
11
|
+
1. 调用 `l10n_inspect`,参数 `path` 指向用户给出的文件。
|
|
12
|
+
2. 用摘要回答:格式、语言对、段数、缺失 target 数、inline tag 统计、warnings、结构 hash。
|
|
13
|
+
3. 如果 `tagMismatch > 0` 或 `warnings > 0`,明确指出段级风险,不要继续写回。
|
|
14
|
+
4. 摘要不包含原文/译文;不要向用户复述或推测文件内容。
|
|
15
|
+
5. 当前阶段只支持 UTF-8、XLIFF 1.2/SDLXLIFF;遇到其他格式/编码直接说明不支持,不要降级猜测。
|
|
16
|
+
|
|
17
|
+
后续翻译/检查/回填步骤在 Phase 1 才提供;本 skill 只做只读检查。
|