Skip to content

Commit e8fa3e4

Browse files
authored
Adopt l10n for jake (#165541)
For #164438
1 parent 803161c commit e8fa3e4

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

extensions/jake/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
"compile": "gulp compile-extension:jake",
1717
"watch": "gulp watch-extension:jake"
1818
},
19-
"dependencies": {
20-
"vscode-nls": "^5.2.0"
21-
},
19+
"dependencies": {},
2220
"devDependencies": {
2321
"@types/node": "16.x"
2422
},

extensions/jake/src/main.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import * as path from 'path';
77
import * as fs from 'fs';
88
import * as cp from 'child_process';
99
import * as vscode from 'vscode';
10-
import * as nls from 'vscode-nls';
11-
const localize = nls.loadMessageBundle();
1210

1311
type AutoDetect = 'on' | 'off';
1412

@@ -60,8 +58,8 @@ function getOutputChannel(): vscode.OutputChannel {
6058
}
6159

6260
function showError() {
63-
vscode.window.showWarningMessage(localize('jakeTaskDetectError', 'Problem finding jake tasks. See the output for more information.'),
64-
localize('jakeShowOutput', 'Go to output')).then(() => {
61+
vscode.window.showWarningMessage(vscode.l10n.t("Problem finding jake tasks. See the output for more information."),
62+
vscode.l10n.t("Go to output")).then(() => {
6563
getOutputChannel().show(true);
6664
});
6765
}
@@ -189,7 +187,7 @@ class FolderDetector {
189187
if (err.stdout) {
190188
channel.appendLine(err.stdout);
191189
}
192-
channel.appendLine(localize('execFailed', 'Auto detecting Jake for folder {0} failed with error: {1}', this.workspaceFolder.name, err.error ? err.error.toString() : 'unknown'));
190+
channel.appendLine(vscode.l10n.t("Auto detecting Jake for folder {0} failed with error: {1}', this.workspaceFolder.name, err.error ? err.error.toString() : 'unknown"));
193191
showError();
194192
return emptyTasks;
195193
}

extensions/jake/yarn.lock

-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,3 @@
66
version "16.11.6"
77
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.6.tgz#6bef7a2a0ad684cf6e90fcfe31cecabd9ce0a3ae"
88
integrity sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==
9-
10-
vscode-nls@^5.2.0:
11-
version "5.2.0"
12-
resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-5.2.0.tgz#3cb6893dd9bd695244d8a024bdf746eea665cc3f"
13-
integrity sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==

0 commit comments

Comments
 (0)