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

@@ -23,7 +23,7 @@ export class ZoomStatusBarEntry extends Disposable {
super();
this._entry = this._register(vscode.window.createStatusBarItem({
id: 'imagePreview.zoom',
name: 'Image Zoom',
name: localize('zoomStatusBar.name', "Image Zoom"),
alignment: vscode.StatusBarAlignment.Right,
priority: 102 /* to the left of editor size entry (101) */,
}));
@@ -65,4 +65,4 @@ export class ZoomStatusBarEntry extends Disposable {
? localize('zoomStatusBar.wholeImageLabel', "Whole Image")
: `${Math.round(scale * 100)}%`;
}
}
}