-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
106 lines (106 loc) · 3 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
{
"name": "deepl-translate",
"displayName": "deepl-translate",
"description": "deepl translate source for comment-translate",
"version": "0.0.2",
"publisher": "intellsmi",
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Other"
],
"keywords": [
"translateSource",
"comment translate",
"deepl",
"deepl translate",
"翻译",
"注释",
"翻訳"
],
"homepage": "https://github.com/intellism/deepl-translate#readme",
"bugs": {
"url": "https://github.com/intellism/deepl-translate/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/intellism/deepl-translate.git"
},
"activationEvents": [],
"main": "./out/extension.js",
"icon": "image/logo.png",
"extensionDependencies": [
"intellsmi.comment-translate"
],
"contributes": {
"configuration": [
{
"title": "DeepL translate Configuration",
"type": "Object",
"properties": {
"deeplTranslate.apiFree": {
"type": "boolean",
"description": "apiFree",
"default": true
},
"deeplTranslate.authKey": {
"type": "string",
"markdownDescription": "You need an authentication key to access to the API.[Accessing the API](https://www.deepl.com/zh/docs-api/accessing-the-api/)"
},
"deeplTranslate.preserveFormatting": {
"type": "string",
"enum": [
"0",
"1"
],
"default": "0",
"markdownDescription": "Sets whether the translation engine should respect the original formatting, even if it would usually correct some aspects. [More](https://www.deepl.com/zh/docs-api/translating-text/request/)"
},
"deeplTranslate.formality": {
"type": "string",
"enum": [
"default",
"more",
"less"
],
"default": "default",
"markdownDescription": "Sets whether the translated text should lean towards formal or informal language. [More](https://www.deepl.com/zh/docs-api/translating-text/request/)"
}
}
}
],
"translates": [
{
"translate": "deepl",
"title": "DeepL translate"
}
]
},
"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"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@vscode/test-electron": "^1.6.2",
"eslint": "^8.1.0",
"glob": "^7.1.7",
"mocha": "^9.1.3",
"typescript": "^4.4.4"
},
"dependencies": {
"axios": "0.21.4",
"comment-translate-manager": "^0.0.2",
"querystring": "^0.2.1"
}
}