-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
124 lines (124 loc) · 3.24 KB
/
package.json
File metadata and controls
124 lines (124 loc) · 3.24 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
{
"name": "transpreview",
"displayName": "TransPreview",
"description": "在 VS Code 中预览文件并使用 AI 进行翻译。专为阅读英文文档和技术文章设计。",
"version": "0.2.0",
"publisher": "maoruibin",
"author": {
"name": "咕咚同学"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/maoruibin/TransPreview.git"
},
"bugs": {
"url": "https://github.com/maoruibin/TransPreview/issues"
},
"homepage": "https://github.com/maoruibin/TransPreview#readme",
"icon": "icon.png",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"keywords": [
"preview",
"translation",
"translate",
"ai",
"deepseek",
"documentation",
"english",
"chinese",
"reading"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "TransPreview.openPreview",
"title": "Open TransPreview",
"icon": "$(mirror)"
},
{
"command": "TransPreview.translateContent",
"title": "Translate",
"icon": "$(translate)"
},
{
"command": "TransPreview.closePreview",
"title": "Close Preview",
"icon": "$(close)"
}
],
"menus": {
"editor/title": [
{
"command": "TransPreview.openPreview",
"when": "TransPreview.previewVisible == false",
"group": "navigation"
},
{
"command": "TransPreview.translateContent",
"when": "TransPreview.previewVisible == true",
"group": "navigation"
},
{
"command": "TransPreview.closePreview",
"when": "TransPreview.previewVisible == true",
"group": "navigation"
}
]
},
"configuration": {
"title": "TransPreview",
"properties": {
"TransPreview.translator": {
"type": "string",
"enum": ["deepseek", "zhipu", "openai", "qwen"],
"enumDescriptions": [
"DeepSeek - Fast & affordable Chinese AI (recommended)",
"Zhipu AI - GLM-4-flash very fast model",
"OpenAI - GPT-4o-mini fast & capable",
"Qwen - Alibaba Tongyi Qianwen"
],
"default": "deepseek",
"description": "Translation service provider"
},
"TransPreview.apiKey": {
"type": "string",
"default": "",
"description": "API key for translation service"
},
"TransPreview.autoTranslate": {
"type": "boolean",
"default": false,
"description": "Auto-translate when preview opens"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^20.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.13.0",
"@typescript-eslint/parser": "^6.13.0",
"eslint": "^8.54.0",
"typescript": "^5.3.0",
"@vscode/vsce": "^2.22.0"
}
}