-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
182 lines (174 loc) · 8.66 KB
/
Copy pathconfig.json
File metadata and controls
182 lines (174 loc) · 8.66 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
{
"$comment": "Single source of truth for the build. Everything else is generated.",
"publisher": "polang233",
"$publisher": "Must match the Open VSX namespace (Cursor's in-app search) and the VS Marketplace publisher id if we also publish there.",
"namePrefix": "cursor-language-pack",
"version": "0.1.5",
"license": "MIT",
"repository": "https://github.com/polang233/cursor-language-pack",
"homepage": "https://github.com/polang233/cursor-language-pack#readme",
"bugs": "https://github.com/polang233/cursor-language-pack/issues",
"icon": "media/icon.png",
"$icon": "Copied into each packaged extension by scripts/build.mjs. 128x128 PNG.",
"engines": {
"vscode": "^1.128.0"
},
"$engines": "Lower bound is the Code OSS version inside the Cursor build this pack was reconciled against. Cursor 3.21.13 ships vscodeVersion 1.128.0. Raise it only to require a newer Cursor. `npm run detect` prints the value for the locally installed build.",
"pack": {
"displayName": "Cursor Language Pack — 简体中文 / 繁體中文",
"description": "Cursor IDE 中文语言包(汉化 / 中文翻译)。简体与繁体已发布;替代 VS Code 官方语言包,并覆盖 Cursor 写进内核的界面文案。其他语言可自行贡献。Simplified & Traditional Chinese for Cursor; other locales welcome via PR.",
"$note": "One displayName + description on Open VSX / Marketplace. Lead with 汉化 / 中文翻译 so Chinese users can find it; other languages are contribution-only and do not need to dominate search."
},
"target": {
"verifiedCursorVersions": ["3.16.17", "3.17.21", "3.19.13", "3.21.13"],
"$verifiedCursorVersions": "Builds whose localizable surface this pack has been reconciled against: `npm run coverage` reports the Cursor-specific keys and `npm run validate` passes. `npm run check-upgrade` compares the installed Cursor against this list."
},
"locales": [
{
"id": "zh-cn",
"languageName": "Chinese Simplified",
"localizedLanguageName": "中文(简体)",
"displayName": "Cursor Chinese (Simplified) Language Pack",
"description": "Simplified Chinese for the whole Cursor IDE: the editor workbench and Cursor-authored NLS strings. Self-contained; replaces the official VS Code language pack. Cursor IDE 完整界面简体中文语言包(含编辑器主体与 Cursor 写入内核的文案),自包含,替代 VS Code 官方中文语言包。",
"companionExtension": "ms-ceintl.vscode-language-pack-zh-hans",
"upstreamPackDir": "i18n/vscode-language-pack-zh-hans",
"enabled": true
},
{
"id": "zh-tw",
"languageName": "Chinese Traditional",
"localizedLanguageName": "中文(繁體)",
"displayName": "Cursor Chinese (Traditional) Language Pack",
"description": "Traditional Chinese for the whole Cursor IDE: the editor workbench and Cursor-authored NLS strings. Self-contained; replaces the official VS Code language pack. Cursor IDE 完整介面繁體中文語言包(含編輯器主體與 Cursor 寫入核心的文案),自包含,替代 VS Code 官方繁體中文語言包。",
"companionExtension": "ms-ceintl.vscode-language-pack-zh-hant",
"upstreamPackDir": "i18n/vscode-language-pack-zh-hant",
"enabled": true
},
{
"id": "ja",
"languageName": "Japanese",
"localizedLanguageName": "日本語",
"companionExtension": "ms-ceintl.vscode-language-pack-ja",
"upstreamPackDir": "i18n/vscode-language-pack-ja",
"enabled": false
},
{
"id": "ko",
"languageName": "Korean",
"localizedLanguageName": "한국어",
"companionExtension": "ms-ceintl.vscode-language-pack-ko",
"upstreamPackDir": "i18n/vscode-language-pack-ko",
"enabled": false
},
{
"id": "fr",
"languageName": "French",
"localizedLanguageName": "français",
"companionExtension": "ms-ceintl.vscode-language-pack-fr",
"upstreamPackDir": "i18n/vscode-language-pack-fr",
"enabled": false
},
{
"id": "de",
"languageName": "German",
"localizedLanguageName": "Deutsch",
"companionExtension": "ms-ceintl.vscode-language-pack-de",
"upstreamPackDir": "i18n/vscode-language-pack-de",
"enabled": false
},
{
"id": "es",
"languageName": "Spanish",
"localizedLanguageName": "español",
"companionExtension": "ms-ceintl.vscode-language-pack-es",
"upstreamPackDir": "i18n/vscode-language-pack-es",
"enabled": false
},
{
"id": "it",
"languageName": "Italian",
"localizedLanguageName": "italiano",
"companionExtension": "ms-ceintl.vscode-language-pack-it",
"upstreamPackDir": "i18n/vscode-language-pack-it",
"enabled": false
},
{
"id": "ru",
"languageName": "Russian",
"localizedLanguageName": "русский",
"companionExtension": "ms-ceintl.vscode-language-pack-ru",
"upstreamPackDir": "i18n/vscode-language-pack-ru",
"enabled": false
},
{
"id": "pt-br",
"languageName": "Portuguese (Brazil)",
"localizedLanguageName": "português (Brasil)",
"companionExtension": "ms-ceintl.vscode-language-pack-pt-BR",
"upstreamPackDir": "i18n/vscode-language-pack-pt-BR",
"enabled": false
},
{
"id": "tr",
"languageName": "Turkish",
"localizedLanguageName": "Türkçe",
"companionExtension": "ms-ceintl.vscode-language-pack-tr",
"upstreamPackDir": "i18n/vscode-language-pack-tr",
"enabled": false
},
{
"id": "pl",
"languageName": "Polish",
"localizedLanguageName": "polski",
"companionExtension": "ms-ceintl.vscode-language-pack-pl",
"upstreamPackDir": "i18n/vscode-language-pack-pl",
"enabled": false
},
{
"id": "cs",
"languageName": "Czech",
"localizedLanguageName": "čeština",
"companionExtension": "ms-ceintl.vscode-language-pack-cs",
"upstreamPackDir": "i18n/vscode-language-pack-cs",
"enabled": false
}
],
"$locales": "Every language microsoft/vscode-loc ships is listed here; only the enabled ones are built. To contribute a language, create src/i18n/<id>/ (see CONTRIBUTING.md) and flip `enabled` to true — no script changes needed. For a language vscode-loc does not cover, add an entry with upstreamPackDir set to null: the workbench then stays English and only the Cursor strings are translated.",
"modes": {
"full": {
"enabled": true,
"perLocale": false,
"nameSuffix": "",
"displayNameSuffix": "",
"includeUpstream": true,
"cursorOnly": false,
"requireCompanion": false,
"$note": "The published product. One extension declaring every enabled locale. Self-contained: vscode-loc workbench baseline plus Cursor-authored NLS keys, so it owns the `vscode` translation id. Do not install an official VS Code language pack alongside it.",
"$why": "Cursor compiled its own UI into nls.messages.json (composer, agents, aiSettings, …). Those strings live in the `vscode` translation id. languagepacks.json maps one id to one file — no per-key merge. Translating them requires owning `vscode`."
},
"companion": {
"enabled": false,
"perLocale": true,
"nameSuffix": "-companion",
"displayNameSuffix": " (Companion)",
"includeUpstream": false,
"cursorOnly": true,
"requireCompanion": false,
"$note": "Disabled. A companion that only claimed Cursor extension ids would coexist with the official pack, but Cursor's built-in extensions barely expose package.nls.json. Almost all reachable Cursor strings live in the `vscode` id."
}
},
"upstream": {
"repo": "microsoft/vscode-loc",
"ref": "9f7f99d0d6d281b7ce3d4c6f1a36899349f8d2d5",
"$ref": "Last vscode-loc commit still on engine 1.128.0, immediately before the 1.129.0 bump. Pin here so File/Edit/View stay aligned with Cursor 3.21.13 (Code OSS 1.128.0). Do not track vscode-loc main.",
"$license": "vscode-loc source and strings are MIT licensed, so redistribution is permitted. See NOTICE."
},
"build": {
"filterByCursorMetadata": true,
"$filterByCursorMetadata": "Drop keys that do not exist in the local Cursor build. Shrinks the pack and makes coverage numbers meaningful. Automatically disabled when metadata/ is absent (e.g. in CI).",
"repairMismatchedMarkers": true,
"$repairMismatchedMarkers": "Drop inherited translations whose {0} placeholders, $(icon) references or (command:...) links no longer match the English source in the installed Cursor build. Mismatches in files this repository maintains are reported instead of dropped. Requires metadata/.",
"dropEmptyBundles": true,
"prettyJson": false
}
}