forked from thibault-vanderseypen/vsce-i18n-json-editor
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
226 lines (226 loc) · 9.69 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
{
"name": "i18n-l10n-editor",
"displayName": "Localization/Internationalization Editor",
"author": {
"name": "NativeBit",
"url": "https://nativebit.dev/"
},
"publisher": "NativeBit",
"repository": {
"url": "https://github.com/DionJChapman/Localization-Internationalization-Editor"
},
"description": "This editor will allow you to edit you Localization and Internationalization files easily. Using Amazon, Google and Microsoft Translation, you can translate to a wide range of languages automatically. Supported formats are i18n, l10n, r13n, arb and json.",
"icon": "media/logo.png",
"version": "3.4.2",
"pricing": "Free",
"engines": {
"vscode": "^1.81.1"
},
"sponsor": {
"url": "https://www.paypal.com/paypalme/puggsincyberspace?country.x=AU&locale.x=en_AU"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished",
"onLanguage:dart",
"workspaceContains:**/*.dart"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "i18n-l10n-editor",
"title": "Open In i18n/l10n Editor"
}
],
"menus": {
"explorer/context": [
{
"command": "i18n-l10n-editor",
"group": "navigation",
"when": "explorerResourceIsFolder"
}
]
},
"configuration": {
"title": "Localization Internationalization Editor",
"properties": {
"i18n-l10n-editor.forceKeyUPPERCASE": {
"default": false,
"type": "boolean",
"description": "Force the keys to uppercase (deprecated)."
},
"i18n-l10n-editor.keyCaseStyle": {
"default": "no change",
"type": "string",
"enum": [
"no change",
"camelCase",
"Capalize",
"lowercase",
"UPPERCASE"
],
"description": "how to write keys to the files valid methods are [no change, camelCase, lowercase, UPPERCASE].\ncamelCase requires spaces when typing key."
},
"i18n-l10n-editor.sortKeyTogether": {
"default": true,
"type": "boolean",
"description": "Sort files so that key and @key will be kept together."
},
"i18n-l10n-editor.executeFlutterGen": {
"default": true,
"type": "boolean",
"description": "Execute flutter gen-l10n when the translations are saved. the requires a l10n.yaml file to work."
},
"i18n-l10n-editor.autoTranslateNewLanguage": {
"default": false,
"type": "boolean",
"description": "Will auto translate all new key translation when adding a new language."
},
"i18n-l10n-editor.defaultLanguage": {
"default": "en",
"type": "string",
"description": "Used when no default language is specified in translation files otherwise the first file found is used."
},
"i18n-l10n-editor.substitutionText": {
"default": "l10n",
"type": [
"string"
],
"description": "A String to replace text when highlighting text in a Dart editor. To have this work you should place the following in your build methods final l10n = AppLocalizations.of(context); This will allow the editor to place l10n.exampleKey in your files."
},
"i18n-l10n-editor.jsonSpace": {
"default": 2,
"type": [
"string",
"number"
],
"description": "A String or Number that's used to insert white space into the output JSON."
},
"i18n-l10n-editor.keySeparator": {
"default": ".",
"type": [
"string",
"boolean"
],
"description": "String to separate keys, or false if no separator is preferred."
},
"i18n-l10n-editor.lineEnding": {
"default": "\n",
"type": [
"string"
],
"description": "String used to signify the end of a line."
},
"i18n-l10n-editor.supportedYamlFiles": {
"default": [
"i18n.yaml",
"l10n.yaml",
"r13n.yaml",
"pubspec.yaml"
],
"type": "array",
"description": "An array of YAML file names that's used to search for configuration settings."
},
"i18n-l10n-editor.supportedFolders": {
"default": [
"i18n",
"l10n",
"r13n"
],
"type": "array",
"description": "An array of folder names that's used to open the extension through the right click (restart required after changing the value)."
},
"i18n-l10n-editor.supportedExtensions": {
"default": [
"arb",
"json"
],
"type": "array",
"description": "An array of file extension to check when loading the editor. if no file exists then the first one is used by default (restart required after changing the value)."
},
"i18n-l10n-editor.translationService": {
"type": "string",
"description": "Specified which translation service to use.",
"enum": [
"AmazonTranslator",
"GoogleTranslator",
"MicrosoftTranslator"
]
},
"i18n-l10n-editor.translationServiceApiKey": {
"type": "string",
"description": "Api key used by the translation service, leave this blank if you wish to switch between Translation Services. Copy this from the Key Generation page."
},
"i18n-l10n-editor.translationServiceApiSecret": {
"type": "string",
"description": "Api secret used by the translation service, leave this blank if you wish to switch between Translation Services. Copy this from the Key Generation page."
},
"i18n-l10n-editor.translationServiceApiRegion": {
"type": "string",
"description": "Api region used by the translation service, leave this blank if you wish to switch between Translation Services. Copy this from the Key Generation page."
},
"i18n-l10n-editor.translationServiceAmazon": {
"default": [
"",
"",
""
],
"type": "array",
"description": "Settings for the Amazon Translate APIs [\"apiKey\",\"apiSecret\",\"apiRegion\"]. Copy this from the Key Generation page."
},
"i18n-l10n-editor.translationServiceGoogle": {
"default": [
"",
"",
""
],
"type": "array",
"description": "Settings for the Google Translate APIs [\"apiKey\",\"apiSecret\",\"apiRegion\"]. Copy this from the Key Generation page."
},
"i18n-l10n-editor.translationServiceMicrosoft": {
"default": [
"",
"",
""
],
"type": "array",
"description": "Settings for the Microsoft Translate APIs [\"apiKey\",\"apiSecret (blank)\",\"apiRegion\"]. Copy this from the Key Generation page."
},
"i18n-l10n-editor.workspaceFolders": {
"type": "array",
"description": "An array of objects to specify which folders are used to manage your translations."
}
}
}
},
"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/crypto-js": "^4.1.1",
"@types/mocha": "^10.0.1",
"@types/node": "20.4.1",
"@types/vscode": "^1.81.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vscode/test-electron": "^2.1.5",
"eslint": "^8.44.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"typescript": "^4.7.4",
"yaml": "^2.3.1"
},
"dependencies": {
"@google-cloud/translate": "^8.0.1",
"aws4": "^1.12.0",
"axios": "^0.28.0"
}
}