-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
165 lines (165 loc) · 5.31 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
{
"name": "ngx-translate-utils",
"displayName": "ngx-translate-utils",
"description": "ngx-translate Utilities",
"version": "0.1.15",
"publisher": "nikhilgoud",
"license": "SEE LICENSE IN LICENSE",
"enableProposedApi": true,
"engines": {
"vscode": "^1.44.0"
},
"icon": "assets/icon.png",
"galleryBanner": {
"color": "#FFFFFF",
"theme": "light"
},
"repository": {
"type": "git",
"url": "https://github.com/nikhilgoud/ngx-translate-utils.git"
},
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"ngx-translate",
"translate",
"translations",
"angular",
"i18n",
"internationalization"
],
"activationEvents": [
"onCommand:ngxu.zombies",
"onCommand:ngxu.createTranslation",
"onCommand:ngxu.missed",
"onCommand:ngxu.organize",
"onLanguage:html",
"onLanguage:typescript"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "ngxu.zombies",
"title": "Find Unused translations in this file",
"category": "NGX-Translate",
"enablement": "editorLangId === json && workbenchState === workspace"
},
{
"command": "ngxu.createTranslation",
"title": "Generate Translation code snippet",
"category": "NGX-Translate",
"enablement": "workbenchState === workspace"
},
{
"command": "ngxu.missed",
"title": "Find Missing translations in this file after oraganizing with base",
"category": "NGX-Translate",
"enablement": "editorLangId === json && workbenchState === workspace"
},
{
"command": "ngxu.organize",
"title": "Organize translations in this file with base language file",
"category": "NGX-Translate",
"enablement": "editorLangId === json && workbenchState === workspace"
}
],
"configuration": {
"type": "string",
"title": "ngx-translate-utils configuration",
"properties": {
"ngx-translate-utils.langFileFolderPath": {
"type": "string",
"default": "**/src/assets/i18n/",
"description": "Base Location for i18n json files folder"
},
"ngx-translate-utils.includeAll": {
"type": "boolean",
"default": false,
"description": "Consider all language files to lookup"
},
"ngx-translate-utils.defaultLang": {
"type": "string",
"default": "en",
"description": "Language file to lookup for autocomplete suggestions example: en, en-US, de, en-IN etc."
},
"ngx-translate-utils.autocapitalize": {
"type": "boolean",
"default": true,
"description": "Automatically capitalize the translation string key - only applies in snake case mode."
},
"ngx-translate-utils.caseMode": {
"type": "string",
"default": "snake",
"description": "Type of case to use for translation string - options are 'camel' and 'snake'."
},
"ngx-translate-utils.replaceOnTranslate": {
"type": "boolean",
"default": true,
"description": "Replace the selected text after generating a translation string."
},
"ngx-translate-utils.translatePipeName": {
"type": "string",
"default": "translate",
"description": "The name of the pipe to handle the translation."
},
"ngx-translate-utils.translatePlaceholder": {
"type": "string",
"default": "this.translateService.instant({key})",
"description": "The code block to handle the translation in ts files."
},
"ngx-translate-utils.translateJSONPlaceholder": {
"type": "string",
"default": "{key}",
"description": "The code block to handle the translation in json files."
},
"ngx-translate-utils.quote": {
"type": "string",
"default": "'",
"description": "Which quote to use around the inserted translation key."
},
"ngx-translate-utils.padding": {
"type": "boolean",
"default": true,
"description": "Add spaces inside the curly bracket pair."
},
"ngx-translate-utils.promptForOrganize": {
"type": "boolean",
"default": true,
"description": "Open diff window with changes to do for organizing language File."
},
"ngx-translate-utils.ignorePatternForGenerate": {
"type": "string",
"default": "\\s?(\\n|<br>|<html>|<\\/html>|\\s)\\s?",
"description": "Regex of vals to ignore while generating translation snippet."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint . --ext .ts,.tsx",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.2",
"@types/mocha": "^2.2.42",
"@types/node": "^12.12.0",
"@types/vscode": "^1.44.0",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"eslint": "^7.1.0",
"glob": "^7.1.4",
"mocha": "^6.1.4",
"typescript": "^3.9.4",
"vscode-test": "^1.3.0"
},
"dependencies": {
"clipboardy": "^2.3.0"
}
}