-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
125 lines (125 loc) · 4.1 KB
/
package.json
File metadata and controls
125 lines (125 loc) · 4.1 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
{
"name": "game-text-translator",
"displayName": "Game Text Translator",
"description": "VSCode extension to translate game text files with AI support",
"version": "0.0.1",
"publisher": "your-publisher-name",
"repository": {
"type": "git",
"url": "https://github.com/your-username/game-text-translator.git"
},
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:gameTextTranslator.translateSelection"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "gameTextTranslator.translateSelection",
"title": "Translate Selection"
}
],
"menus": {
"editor/context": [
{
"command": "gameTextTranslator.translateSelection",
"when": "editorHasSelection"
}
],
"commandPalette": [
{
"command": "gameTextTranslator.translateSelection"
}
]
},
"configuration": {
"title": "Game Text Translator",
"properties": {
"gameTextTranslator.sourceLanguage": {
"type": "string",
"default": "en",
"description": "Source language code (e.g., en, ja, zh)"
},
"gameTextTranslator.targetLanguage": {
"type": "string",
"default": "vi",
"description": "Target language code (e.g., vi, en, zh)"
},
"gameTextTranslator.translationProvider": {
"type": "string",
"enum": [
"googleTranslate",
"libreTranslate",
"openRouter",
"openAI",
"googleCloud"
],
"default": "googleTranslate",
"description": "Translation service provider"
},
"gameTextTranslator.openRouterApiKey": {
"type": "string",
"description": "OpenRouter API key"
},
"gameTextTranslator.openRouterModel": {
"type": "string",
"enum": [
"x-ai/grok-4-fast:free",
"google/gemini-2.5-flash",
"openai/gpt-4.1-mini"
],
"default": "x-ai/grok-4-fast:free",
"description": "OpenRouter AI model for translation"
},
"gameTextTranslator.openAIApiKey": {
"type": "string",
"description": "OpenAI API key"
},
"gameTextTranslator.googleCloudApiKey": {
"type": "string",
"description": "Google Cloud Translation API key"
},
"gameTextTranslator.systemPrompt": {
"type": "string",
"default": "You are a professional Vietnamese game translator specializing in video game localization.\n\nYour task is to translate game text from English to Vietnamese naturally and accurately.\n\nGuidelines:\n- Maintain the original tone and style of the game text\n- Use appropriate gaming terminology and slang\n- Keep cultural references intact when possible\n- Ensure translations fit the character limit if specified\n- Preserve any special formatting or placeholders\n- Make translations sound natural to Vietnamese gamers\n\nTranslate the following text:",
"description": "System prompt for AI translation",
"editPresentation": "multilineText"
},
"gameTextTranslator.vocabulary": {
"type": "object",
"default": {},
"description": "Custom vocabulary dictionary (key: original, value: translation)"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "npm run compile && vsce package",
"publish": "npm run compile && vsce publish"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/papaparse": "^5.3.16",
"@types/vscode": "^1.74.0",
"@vscode/test-electron": "^2.2.0",
"eslint": "^8.28.0",
"glob": "^8.1.0",
"mocha": "^10.1.0",
"typescript": "^4.9.4"
},
"dependencies": {}
}