-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
224 lines (224 loc) · 7.04 KB
/
package.json
File metadata and controls
224 lines (224 loc) · 7.04 KB
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
{
"name": "stringer-helper",
"displayName": "%extension.displayName%",
"description": "%extension.description%",
"version": "1.1.8",
"publisher": "titusdecali",
"icon": "images/stringerIcon.png",
"repository": {
"type": "git",
"url": "https://github.com/titusdecali/stringer-vscode"
},
"bugs": {
"url": "https://discord.gg/hSfeCkej4y"
},
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"keywords": [
"i18n",
"localization",
"translation",
"vue",
"nuxt",
"react",
"nextjs",
"next"
],
"activationEvents": [
"onLanguage:vue",
"onLanguage:javascriptreact",
"onLanguage:typescriptreact",
"onLanguage:javascript",
"onLanguage:typescript",
"onStartupFinished"
],
"main": "./dist/start.js",
"files": [
"dist/**",
"images/**",
"l10n/**",
"package.json",
"package.nls*.json",
"README.md",
"license.md"
],
"l10n": {
"bundle": "./l10n/bundle.l10n.json"
},
"contributes": {
"commands": [
{
"command": "stringer.addI18nKey",
"title": "%command.stringer.addI18nKey.title%"
},
{
"command": "stringer.revertToOriginalText",
"title": "%command.stringer.revertToOriginalText.title%"
},
{
"command": "stringer.showMenu",
"title": "%command.stringer.showMenu.title%"
},
{
"command": "stringer.changePreviewLanguage",
"title": "%command.stringer.changePreviewLanguage.title%"
},
{
"command": "stringer.changeLocalesFolder",
"title": "%command.stringer.changeLocalesFolder.title%"
},
{
"command": "stringer.toggleInlinePreview",
"title": "%command.stringer.toggleInlinePreview.title%"
},
{
"command": "stringer.changePreviewMode",
"title": "%command.stringer.changePreviewMode.title%"
},
{
"command": "stringer.openControlPanel",
"title": "%command.stringer.openControlPanel.title%"
},
{
"command": "stringer.reloadLocales",
"title": "%command.stringer.reloadLocales.title%"
},
{
"command": "stringer.ignoreLine",
"title": "%command.stringer.ignoreLine.title%"
},
{
"command": "stringer.ignoreFile",
"title": "%command.stringer.ignoreFile.title%"
}
],
"menus": {
"editor/context": [
{
"command": "stringer.addI18nKey",
"group": "navigation@9",
"when": "editorHasSelection && resourceExtname =~ /\\.(js|jsx|ts|tsx|vue|svelte|mdx|md)$/"
},
{
"command": "stringer.revertToOriginalText",
"group": "navigation@9",
"when": "(stringer.hasI18nKeyAtCursor || stringer.hasI18nKeyOnLine) && resourceExtname =~ /\\.(js|jsx|ts|tsx|vue|svelte|mdx|md)$/"
},
{
"command": "stringer.ignoreLine",
"group": "navigation@9",
"when": "editorTextFocus && resourceExtname =~ /\\.(js|jsx|ts|tsx|vue|svelte|mdx|md)$/"
},
{
"command": "stringer.ignoreFile",
"group": "navigation@9",
"when": "editorTextFocus && resourceExtname =~ /\\.(js|jsx|ts|tsx|vue|svelte|mdx|md)$/"
}
]
},
"configuration": {
"title": "Stringer Helper",
"properties": {
"stringerHelper.enableInlinePreview": {
"type": "boolean",
"default": true,
"description": "Show inline translation preview for t('key') calls"
},
"stringerHelper.defaultPreviewLanguage": {
"type": "string",
"default": "",
"description": "Default preview language code (falls back to baseLanguage if empty)"
},
"stringerHelper.inlinePreviewKeyMode": {
"type": "string",
"enum": [
"hidden",
"full",
"leaf"
],
"default": "hidden",
"markdownDescription": "Controls inline key display: `hidden` (no key), `full` (show full key), `leaf` (show 4-digit/leaf only)."
},
"stringerHelper.previewBackgroundColor": {
"type": "string",
"default": "#4e18b5",
"description": "Background color for inline preview badges (CSS color or HEX)."
},
"stringerHelper.hoverShowsKey": {
"type": "boolean",
"default": true,
"description": "If enabled, hover includes the original i18n key."
},
"stringerHelper.autoAlignAfterAdd": {
"type": "boolean",
"default": false,
"description": "Automatically run `stringer align` after adding a new i18n key to ensure other locales are updated."
},
"stringerHelper.framework": {
"type": "string",
"enum": [
"auto",
"vue",
"react",
"next"
],
"default": "auto",
"description": "Framework to tailor add-key injection for (auto-detects from package.json when set to auto)."
},
"stringerHelper.reactInjection": {
"type": "string",
"enum": [
"react-i18next",
"none"
],
"default": "react-i18next",
"description": "React injection style for t(): import/useTranslation from react-i18next or skip."
},
"stringerHelper.nextInjection": {
"type": "string",
"enum": [
"next-intl",
"none"
],
"default": "next-intl",
"description": "Next.js injection style for t(): useTranslations from next-intl or skip."
},
"stringerHelper.cliConfigPath": {
"type": "string",
"default": "",
"description": "Optional absolute path override to .stringer-cli.json when auto-detection fails."
},
"stringerHelper.advancedConversion.enabled": {
"type": "boolean",
"default": true,
"description": "Enable advanced detection of dynamic values in strings (template literals, concatenation, etc.)."
},
"stringerHelper.advancedConversion.preserveExpressions": {
"type": "boolean",
"default": true,
"markdownDescription": "When converting dynamic strings, preserve the original expressions in the `t()` call parameters (e.g., `t('key', { price: item.price.toFixed(2) })`)."
},
"stringerHelper.enableDebugLogging": {
"type": "boolean",
"default": false,
"description": "Enable debug logging to the 'Stringer Helper Debug' output channel. Useful for troubleshooting locale detection issues."
}
}
}
},
"scripts": {
"compile": "tsc -p .",
"watch": "tsc -w -p .",
"build": "pnpm run compile && vsce package"
},
"devDependencies": {
"@types/node": "^20.11.30",
"@types/vscode": "^1.80.0",
"typescript": "^5.4.5"
},
"packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c"
}