Skip to content

Commit f3cc695

Browse files
author
Kartik Raj
committed
Localize strings using new localize module
1 parent 04f4146 commit f3cc695

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/client/browser/intellisenseStatus.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +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';
67

78
export function createStatusItem(): vscode.Disposable {
89
// TODO: Note strings are not localized here yet. Localizing strings here
@@ -12,10 +13,10 @@ export function createStatusItem(): vscode.Disposable {
1213
const statusItem = vscode.languages.createLanguageStatusItem('python.projectStatus', {
1314
language: 'python',
1415
});
15-
statusItem.name = 'Python IntelliSense Status';
16+
statusItem.name = LanguageService.statusItem.name();
1617
statusItem.severity = vscode.LanguageStatusSeverity.Warning;
17-
statusItem.text = 'Partial Mode';
18-
statusItem.detail = 'Limited IntelliSense provided by Pylance';
18+
statusItem.text = LanguageService.statusItem.text();
19+
statusItem.detail = LanguageService.statusItem.detail();
1920
statusItem.command = {
2021
title: 'Learn More',
2122
command: 'vscode.open',

src/client/common/utils/localize.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,6 @@ export namespace TensorBoard {
204204
}
205205

206206
export namespace LanguageService {
207-
export const statusItem = {
208-
name: localize('LanguageService.statusItem.name', 'Python IntelliSense Status'),
209-
text: localize('LanguageService.statusItem.text', 'Partial Mode'),
210-
detail: localize('LanguageService.statusItem.detail', 'Limited IntelliSense provided by Pylance'),
211-
};
212207
export const startingMicrosoft = localize(
213208
'LanguageService.startingMicrosoft',
214209
'Starting Microsoft Python language server.',

0 commit comments

Comments
 (0)