Skip to content

Commit 71b996e

Browse files
use ILocalizedString in a few places (microsoft#153950)
1 parent fecd1aa commit 71b996e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ registerAction2(class extends Action2 {
123123
constructor() {
124124
super({
125125
id: detectLanguageCommandId,
126-
title: localize('detectlang', 'Detect Language from Content'),
126+
title: { value: localize('detectlang', 'Detect Language from Content'), original: 'Detect Language from Content' },
127127
f1: true,
128128
precondition: ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE.toNegated(), EditorContextKeys.editorTextFocus),
129129
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }

src/vs/workbench/contrib/notebook/browser/controller/editActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
469469
constructor() {
470470
super({
471471
id: DETECT_CELL_LANGUAGE,
472-
title: localize('detectLanguage', 'Accept Detected Language for Cell'),
472+
title: { value: localize('detectLanguage', 'Accept Detected Language for Cell'), original: 'Accept Detected Language for Cell' },
473473
f1: true,
474474
precondition: ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE),
475475
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }

src/vs/workbench/contrib/update/browser/update.contribution.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class DownloadUpdateAction extends Action2 {
3434
constructor() {
3535
super({
3636
id: 'update.downloadUpdate',
37-
title: localize('downloadUpdate', "Download Update"),
38-
category: product.nameShort,
37+
title: { value: localize('downloadUpdate', "Download Update"), original: 'Download Update' },
38+
category: { value: product.nameShort, original: product.nameShort },
3939
f1: true,
4040
precondition: CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload)
4141
});
@@ -50,8 +50,8 @@ class InstallUpdateAction extends Action2 {
5050
constructor() {
5151
super({
5252
id: 'update.installUpdate',
53-
title: localize('installUpdate', "Install Update"),
54-
category: product.nameShort,
53+
title: { value: localize('installUpdate', "Install Update"), original: 'Install Update' },
54+
category: { value: product.nameShort, original: product.nameShort },
5555
f1: true,
5656
precondition: CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded)
5757
});
@@ -66,8 +66,8 @@ class RestartToUpdateAction extends Action2 {
6666
constructor() {
6767
super({
6868
id: 'update.restartToUpdate',
69-
title: localize('restartToUpdate', "Restart to Update"),
70-
category: product.nameShort,
69+
title: { value: localize('restartToUpdate', "Restart to Update"), original: 'Restart to Update' },
70+
category: { value: product.nameShort, original: product.nameShort },
7171
f1: true,
7272
precondition: CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)
7373
});

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,8 @@ registerAction2(class extends Action2 {
691691
constructor() {
692692
super({
693693
id: 'resetGettingStartedProgress',
694-
category: 'Developer',
695-
title: 'Reset Welcome Page Walkthrough Progress',
694+
category: { original: 'Developer', value: localize('developer', "Developer") },
695+
title: { original: 'Reset Welcome Page Walkthrough Progress', value: localize('resetWelcomePageWalkthroughProgress', "Reset Welcome Page Walkthrough Progress") },
696696
f1: true
697697
});
698698
}

0 commit comments

Comments
 (0)