-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
176 lines (176 loc) · 4.82 KB
/
Copy pathpackage.json
File metadata and controls
176 lines (176 loc) · 4.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"name": "claude-code-zhcn",
"displayName": "[非官方] Claude Code for VS Code 简体中文汉化包",
"description": "非官方的 Claude Code for VS Code 插件的简体中文汉化插件",
"version": "1.4.5",
"publisher": "zstings",
"bugs": {
"url": "https://github.com/zstings/claude-code-zh-cn/issues"
},
"engines": {
"vscode": "^1.94.0"
},
"icon": "logo.png",
"repository": {
"type": "git",
"url": "https://github.com/zstings/claude-code-zh-cn.git"
},
"categories": [
"Language Packs",
"AI",
"Chat",
"Other"
],
"keywords": [
"claude",
"sonnet",
"ai",
"mcp",
"agent",
"claude code",
"chinese",
"中文",
"简体",
"汉化",
"i18n"
],
"activationEvents": [
"*"
],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "claudeCodeZhCn.applyTranslation",
"title": "应用汉化",
"category": "Claude Code 汉化"
},
{
"command": "claudeCodeZhCn.restoreOriginal",
"title": "还原原版",
"category": "Claude Code 汉化"
},
{
"command": "claudeCodeZhCn.openConfig",
"title": "打开配置",
"category": "Claude Code 汉化"
},
{
"command": "claudeCodeZhCn.reloadExtension",
"title": "重新加载汉化",
"category": "Claude Code 汉化"
}
],
"configuration": {
"title": "Claude Code 汉化",
"properties": {
"claudeCodeZhCn.autoApplyOnStartup": {
"type": "boolean",
"default": true,
"description": "VS Code 启动时自动应用汉化"
},
"claudeCodeZhCn.autoApplyOnUpdate": {
"type": "boolean",
"default": true,
"description": "检测到 Claude Code 更新时自动重新应用汉化"
},
"claudeCodeZhCn.preTranslationRules": {
"type": "array",
"default": [],
"description": "前置汉化规则(在内置规则之前执行)",
"items": {
"type": "object",
"properties": {
"original": {
"type": "string",
"description": "原始英文文本(支持正则表达式)"
},
"chinese": {
"type": "string",
"description": "中文翻译"
},
"regex": {
"type": "boolean",
"default": false,
"description": "是否使用正则表达式匹配"
},
"flags": {
"type": "string",
"default": "g",
"description": "正则表达式标志(如 'gi' 表示全局+忽略大小写)"
}
},
"required": [
"original",
"chinese"
]
}
},
"claudeCodeZhCn.postTranslationRules": {
"type": "array",
"default": [],
"description": "后置汉化规则(在内置规则之后执行)",
"items": {
"type": "object",
"properties": {
"original": {
"type": "string",
"description": "原始英文文本(支持正则表达式)"
},
"chinese": {
"type": "string",
"description": "中文翻译"
},
"regex": {
"type": "boolean",
"default": false,
"description": "是否使用正则表达式匹配"
},
"flags": {
"type": "string",
"default": "g",
"description": "正则表达式标志(如 'gi' 表示全局+忽略大小写)"
}
},
"required": [
"original",
"chinese"
]
}
},
"claudeCodeZhCn.createBackup": {
"type": "boolean",
"default": true,
"description": "应用汉化前创建备份文件"
},
"claudeCodeZhCn.showNotifications": {
"type": "boolean",
"default": true,
"description": "显示操作完成的通知"
},
"claudeCodeZhCn.claudeCodeExtensionId": {
"type": "string",
"default": "Anthropic.claude-code",
"description": "Claude Code 扩展的 ID(格式:Publisher.ExtensionName)"
}
}
}
},
"scripts": {
"lint": "eslint .",
"pretest": "pnpm run lint",
"test": "vscode-test",
"build": "pnpm vsce package --no-dependencies"
},
"devDependencies": {
"@types/vscode": "1.94.0",
"@vscode/vsce": "^3.7.1",
"eslint": "^9.18.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"@vscode/vsce-sign",
"keytar"
]
}
}