-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
314 lines (314 loc) · 9.86 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
{
"name": "translate-it",
"publisher": "dangquangdon",
"displayName": "translate-it",
"description": "Convenient helper extension to translate English to other languages during development.",
"version": "1.0.1",
"engines": {
"vscode": "^1.48.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "translate-it.translateIt",
"title": "Translate It!"
}
],
"configuration": {
"title": "Translate It",
"properties": {
"trans.googleCloudCredentialPath": {
"type": "string",
"description": "Absolute path to your google JSON service account credential"
},
"trans.defaultTargetLanguage": {
"type": "string",
"default": "fi",
"enum": [
"af",
"sq",
"am",
"ar",
"hy",
"az",
"eu",
"be",
"bn",
"bs",
"bg",
"ca",
"eb",
"zh",
"zh-TW",
"co",
"hr",
"cs",
"da",
"nl",
"en",
"eo",
"et",
"fi",
"fr",
"fy",
"gl",
"ka",
"de",
"el",
"gu",
"ht",
"ha",
"aw",
"iw",
"hi",
"mn",
"hu",
"is",
"ig",
"id",
"ga",
"it",
"ja",
"jv",
"kn",
"kk",
"km",
"rw",
"ko",
"ku",
"ky",
"lo",
"la",
"lv",
"lt",
"lb",
"mk",
"mg",
"ms",
"ml",
"mt",
"mi",
"mr",
"mn",
"my",
"ne",
"no",
"ny",
"or",
"ps",
"fa",
"pl",
"pt",
"pa",
"ro",
"ru",
"sm",
"gd",
"sr",
"st",
"sn",
"sd",
"si",
"sk",
"sl",
"so",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"ta",
"tt",
"te",
"th",
"tr",
"tk",
"uk",
"ur",
"ug",
"uz",
"vi",
"cy",
"xh",
"yi",
"yo",
"zu"
],
"enumDescriptions": [
"Make Afrikaans af as default language",
"Make Albanian sq as default language",
"Make Amharic am as default language",
"Make Arabic ar as default language",
"Make Armenian hy as default language",
"Make Azerbaijani az as default language",
"Make Basque eu as default language",
"Make Belarusian be as default language",
"Make Bengali bn as default language",
"Make Bosnian bs as default language",
"Make Bulgarian bg as default language",
"Make Catalan ca as default language",
"Make Cebuano ceb as default language",
"Make Chinese (Simplified) zh-CN or zh as default language",
"Make Chinese (Traditional) zh-TW as default language",
"Make Corsican co as default language",
"Make Croatian hr as default language",
"Make Czech cs as default language",
"Make Danish da as default language",
"Make Dutch nl as default language",
"Make English en as default language",
"Make Esperanto eo as default language",
"Make Estonian et as default language",
"Make Finnish fi as default language",
"Make French fr as default language",
"Make Frisian fy as default language",
"Make Galician gl as default language",
"Make Georgian ka as default language",
"Make German de as default language",
"Make Greek el as default language",
"Make Gujarati gu as default language",
"Make Haitian Creole ht as default language",
"Make Hausa ha as default language",
"Make Hawaiian haw (ISO-639-2) as default language",
"Make Hebrew he or iw as default language",
"Make Hindi hi as default language",
"Make Hmong hmn (ISO-639-2) as default language",
"Make Hungarian hu as default language",
"Make Icelandic is as default language",
"Make Igbo ig as default language",
"Make Indonesian id as default language",
"Make Irish ga as default language",
"Make Italian it as default language",
"Make Japanese ja as default language",
"Make Javanese jv as default language",
"Make Kannada kn as default language",
"Make Kazakh kk as default language",
"Make Khmer km as default language",
"Make Kinyarwanda rw as default language",
"Make Korean ko as default language",
"Make Kurdish ku as default language",
"Make Kyrgyz ky as default language",
"Make Lao lo as default language",
"Make Latin la as default language",
"Make Latvian lv as default language",
"Make Lithuanian lt as default language",
"Make Luxembourgish lb as default language",
"Make Macedonian mk as default language",
"Make Malagasy mg as default language",
"Make Malay ms as default language",
"Make Malayalam ml as default language",
"Make Maltese mt as default language",
"Make Maori mi as default language",
"Make Marathi mr as default language",
"Make Mongolian mn as default language",
"Make Myanmar (Burmese) my as default language",
"Make Nepali ne as default language",
"Make Norwegian no as default language",
"Make Nyanja (Chichewa) ny as default language",
"Make Odia (Oriya) or as default language",
"Make Pashto ps as default language",
"Make Persian fa as default language",
"Make Polish pl as default language",
"Make Portuguese (Portugal, Brazil) pt as default language",
"Make Punjabi pa as default language",
"Make Romanian ro as default language",
"Make Russian ru as default language",
"Make Samoan sm as default language",
"Make Scots Gaelic gd as default language",
"Make Serbian sr as default language",
"Make Sesotho st as default language",
"Make Shona sn as default language",
"Make Sindhi sd as default language",
"Make Sinhala (Sinhalese) si as default language",
"Make Slovak sk as default language",
"Make Slovenian sl as default language",
"Make Somali so as default language",
"Make Spanish es as default language",
"Make Sundanese su as default language",
"Make Swahili sw as default language",
"Make Swedish sv as default language",
"Make Tagalog (Filipino) tl as default language",
"Make Tajik tg as default language",
"Make Tamil ta as default language",
"Make Tatar tt as default language",
"Make Telugu te as default language",
"Make Thai th as default language",
"Make Turkish tr as default language",
"Make Turkmen tk as default language",
"Make Ukrainian uk as default language",
"Make Urdu ur as default language",
"Make Uyghur ug as default language",
"Make Uzbek uz as default language",
"Make Vietnamese vi as default language",
"Make Welsh cy as default language",
"Make Xhosa xh as default language",
"Make Yiddish yi as default language",
"Make Yoruba yo as default language",
"Make Zulu zu as default language"
],
"description": "You might need to reload the window after changing the language"
}
}
},
"keybindings": [
{
"command": "translate-it.translateIt",
"key": "ctrl+f1",
"mac": "cmd+f1",
"when": "editorTextFocus"
}
],
"menus": {
"commandPalette": [
{
"command": "translate-it.translateIt",
"when": "editorHasSelection"
}
],
"editor/title": [
{
"command": "translate-it.translateIt",
"when": "editorHasSelection",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.0",
"@types/node": "^14.6.0",
"@types/vscode": "^1.48.0",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^3.8.0",
"eslint": "^7.6.0",
"glob": "^7.1.6",
"mocha": "^8.0.1",
"typescript": "^3.8.3",
"vscode-test": "^1.4.0"
},
"dependencies": {
"@google-cloud/translate": "^6.0.2",
"@types/mock-fs": "^4.10.0",
"mock-fs": "^4.13.0"
},
"repository": {
"type": "git",
"url": "https://github.com/dangquangdon/vscode-translate-extension.git"
}
}