-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
183 lines (183 loc) · 5.42 KB
/
package.json
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
177
178
179
180
181
182
183
{
"name": "interline-translate",
"displayName": "Interline Translate",
"publisher": "rzmu",
"description": "",
"version": "0.5.2",
"repository": {
"type": "git",
"url": "https://github.com/LittleSound/interline-translate.git"
},
"sponsor": {
"url": "https://github.com/sponsors/LittleSound"
},
"icon": "assets/logo.png",
"engines": {
"vscode": "^1.89.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"packageManager": "[email protected]",
"main": "./out/extension.js",
"browser": "./out/web-extension.js",
"scripts": {
"vscode:prepublish": "pnpm run build --minify",
"build": "node scripts/build",
"compile": "pnpm run build",
"watch": "pnpm run build --watch",
"pretest": "pnpm run build && pnpm run lint",
"serve": "serve -C",
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"test": "node ./out/test/runTest.js",
"publish": "vsce publish --no-dependencies",
"package": "vsce package --no-dependencies",
"update": "npx vscode-ext-gen",
"prepare": "pnpm run update"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@types/node": "20.2.5",
"@types/vscode": "^1.89.0",
"@vscode/test-electron": "^2.3.9",
"@vue/reactivity": "^3.4.26",
"esbuild": "^0.18.20",
"eslint": "^8.57.0",
"glob": "^8.1.0",
"locale-codes": "^1.3.1",
"mocha": "^10.4.0",
"ofetch": "^1.3.4",
"popular-english-words": "^1.0.2",
"typescript": "^5.4.5",
"varname": "^6.2.0",
"vsce": "^2.15.0",
"vscode-ext-gen": "^0.3.1",
"vscode-oniguruma": "^1.7.0",
"vscode-textmate": "^9.0.0"
},
"contributes": {
"commands": [
{
"command": "interline-translate.translateSelectedText",
"category": "Interline Translate",
"title": "Translate Selected Text"
},
{
"command": "interline-translate.toggleTranslatingDocuments",
"category": "Interline Translate",
"title": "Toggle translating documents"
},
{
"command": "interline-translate.startTranslatingDocuments",
"category": "Interline Translate",
"title": "Start translating documents"
},
{
"command": "interline-translate.stopTranslatingDocuments",
"category": "Interline Translate",
"title": "Stop translating documents"
},
{
"command": "interline-translate.displayOriginalText",
"category": "Interline Translate",
"title": "Display original text"
},
{
"command": "interline-translate.translateTheDocumentOnce",
"category": "Interline Translate",
"title": "Translate the document once"
},
{
"command": "interline-translate.showTranslatePopmenu",
"category": "Interline Translate",
"title": "Show menu"
},
{
"command": "interline-translate.clearTranslationCache",
"category": "Interline Translate",
"title": "Clear translation cache"
},
{
"command": "interline-translate.showDebugReport",
"category": "Interline Translate",
"title": "Show debug report"
},
{
"command": "interline-translate.markKnownWords",
"category": "Interline Translate",
"title": "Mark known words"
}
],
"menus": {
"commandPalette": [
{
"command": "interline-translate.markKnownWords",
"when": "false"
}
]
},
"configuration": {
"type": "object",
"title": "Interline Translate",
"properties": {
"interline-translate.defaultTargetLanguage": {
"type": "string",
"default": "zh-CN",
"description": "Default target language to translate to."
},
"interline-translate.secondLanguage": {
"type": "string",
"default": "",
"description": "Fallback language when the default language is not available."
},
"interline-translate.translator": {
"type": "string",
"default": "bing",
"enum": ["google", "bing"],
"description": "Translation service provider"
},
"interline-translate.googleTranslateProxy": {
"type": "string",
"default": "",
"description": "Google translate proxy to use for requests. Leave empty to use the official API Url."
},
"interline-translate.corsProxy": {
"type": "string",
"default": "",
"description": "CORS proxy to use for requests. Leave empty to use the default proxy."
},
"interline-translate.minWordLength": {
"type": "number",
"default": 4,
"description": "Minimum word length to translate."
},
"interline-translate.knownWords": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"interline-translate.customTranslations": {
"type": "object",
"items": {
"type": "string"
},
"default": {},
"description": "Custom translations for specific terms."
},
"interline-translate.knownPopularWordCount": {
"type": "number",
"default": 0,
"description": "Amount of the the most popular words skipped from translation."
}
}
}
}
}