Skip to content

Commit a565f0d

Browse files
author
Kartik Raj
authored
Localize 'learn more' text (microsoft#17714)
1 parent 858fdfa commit a565f0d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/client/browser/intellisenseStatus.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// IMPORTANT: Do not import any node fs related modules here, as they do not work in browser.
55
import * as vscode from 'vscode';
6-
import { LanguageService } from './localize';
6+
import { Common, LanguageService } from './localize';
77

88
export function createStatusItem(): vscode.Disposable {
99
if ('createLanguageStatusItem' in vscode.languages) {
@@ -15,7 +15,7 @@ export function createStatusItem(): vscode.Disposable {
1515
statusItem.text = LanguageService.statusItem.text();
1616
statusItem.detail = LanguageService.statusItem.detail();
1717
statusItem.command = {
18-
title: 'Learn More',
18+
title: Common.learnMore(),
1919
command: 'vscode.open',
2020
arguments: [vscode.Uri.parse('https://aka.ms/AAdzyh4')],
2121
};

src/client/browser/localize.ts

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export namespace LanguageService {
1616
};
1717
}
1818

19+
export namespace Common {
20+
export const learnMore = localize('Common.learnMore', 'Learn more');
21+
}
22+
1923
function localize(key: string, defValue?: string) {
2024
// Return a pointer to function so that we refetch it on each call.
2125
return (): string => getLocalizedString(key, defValue);

0 commit comments

Comments
 (0)