Skip to content

Commit

Permalink
Merge pull request #415 from dehilsterlexis/LOCALIZE_ADD_PACKAGE_LOCALS
Browse files Browse the repository at this point in the history
fix: add submenus, views, notebooks, and notebookRenderer to fixPackage
  • Loading branch information
GordonSmith authored Apr 19, 2024
2 parents 577fd4b + 6af15d6 commit 65cfee9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions util/nls/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,34 @@ export function fixPackage() {
touched = fix(item, "description") || touched;
}

for (const key in pkg.contributes.submenus) {
const item = pkg.contributes.submenus[key];
touched = fix(item, "label") || touched;
}

for (const key in pkg.contributes.views) {
const items = pkg.contributes.views[key];
for (const k in items) {
const item = items[k];
touched = fix(item, "name") || touched;
}
}

for (const key in pkg.contributes.configuration.properties) {
const item = pkg.contributes.configuration.properties[key];
touched = fix(item, "description") || touched;
}

for (const key in pkg.contributes.notebooks) {
const item = pkg.contributes.notebooks[key];
touched = fix(item, "displayName") || touched;
}

for (const key in pkg.contributes.notebookRenderer) {
const item = pkg.contributes.notebookRenderer[key];
touched = fix(item, "displayName") || touched;
}

for (const key in pkg.contributes.debuggers[0].configurationAttributes.launch.properties) {
const item = pkg.contributes.debuggers[0].configurationAttributes.launch.properties[key];
touched = fix(item, "description") || touched;
Expand Down

0 comments on commit 65cfee9

Please sign in to comment.