Make sure status bar name for zoom/size can be localized

This commit is contained in:
Matt Bierner
2019-10-01 14:53:37 -07:00
parent b3da545c1d
commit 47ac64a019
2 changed files with 7 additions and 4 deletions

View File

@@ -5,6 +5,9 @@
import * as vscode from 'vscode';
import { Disposable } from './dispose';
import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();
export class SizeStatusBarEntry extends Disposable {
private readonly _entry: vscode.StatusBarItem;
@@ -13,7 +16,7 @@ export class SizeStatusBarEntry extends Disposable {
super();
this._entry = this._register(vscode.window.createStatusBarItem({
id: 'imagePreview.size',
name: 'Image Size',
name: localize('sizeStatusBar.name', "Image Size"),
alignment: vscode.StatusBarAlignment.Right,
priority: 101 /* to the left of editor status (100) */,
}));
@@ -30,4 +33,4 @@ export class SizeStatusBarEntry extends Disposable {
public update(text: string) {
this._entry.text = text;
}
}
}