Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
120 lines (120 loc) · 3.14 KB
/
Copy pathpackage.json
File metadata and controls
120 lines (120 loc) · 3.14 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
{
"name": "elementarywatson",
"displayName": "ElementaryWatson",
"icon": "icon.png",
"publisher": "romerramos",
"keywords": [
"i18n",
"translation",
"internationalization",
"paraglide",
"paraglidejs",
"svelte",
"sveltekit",
"sherlock",
"inlang",
"elementary",
"watson",
"elementarywatson"
],
"repository": {
"type": "git",
"url": "https://github.com/romerramos/elementary-watson.git"
},
"author": {
"name": "Romer"
},
"description": "VS Code extension that displays inline translation values for Paraglide JS i18n method calls in Svelte/SvelteKit applications",
"version": "0.5.3",
"engines": {
"vscode": "^1.99.3"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:svelte"
],
"main": "./extension.js",
"contributes": {
"configuration": {
"title": "ElementaryWatson",
"properties": {
"elementaryWatson.defaultLocale": {
"type": "string",
"default": "en",
"description": "Default locale for displaying translation labels. If not set, will use the baseLocale from project.inlang settings or fallback to 'en'.",
"pattern": "^[a-z]{2}(-[A-Z]{2})?$",
"patternErrorMessage": "Locale must be in format 'en' or 'en-US'"
},
"elementaryWatson.realtimeUpdates": {
"type": "boolean",
"default": true,
"description": "Enable real-time updates of translation labels while typing. When disabled, labels only update on save."
},
"elementaryWatson.updateDelay": {
"type": "number",
"default": 300,
"minimum": 100,
"maximum": 2000,
"description": "Delay in milliseconds before updating translation labels after typing stops (100-2000ms)."
}
}
},
"views": {
"elementaryWatson": [
{
"id": "elementaryWatsonSidebar",
"name": "Translation Keys",
"when": "elementaryWatson.showSidebar"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "elementaryWatson",
"title": "ElementaryWatson",
"icon": "$(globe)"
}
]
},
"commands": [
{
"command": "elementaryWatson.changeLocale",
"title": "Change Label Locales",
"category": "ElementaryWatson"
},
{
"command": "elementaryWatson.extractText",
"title": "Extract Text to Locale",
"category": "ElementaryWatson"
},
{
"command": "elementaryWatson.openTranslationFile",
"title": "Open Translation File",
"icon": "$(target)"
}
]
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.99.3",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"eslint": "^9.25.1"
},
"dependencies": {
"human-id": "^4.1.1"
}
}