4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import * as vscode from 'vscode' ;
7
- import * as nls from 'vscode-nls' ;
8
7
import { Disposable } from './dispose' ;
9
8
10
- const localize = nls . loadMessageBundle ( ) ;
11
9
12
10
export interface ShowOptions {
13
11
readonly preserveFocus ?: boolean ;
@@ -17,7 +15,7 @@ export interface ShowOptions {
17
15
export class SimpleBrowserView extends Disposable {
18
16
19
17
public static readonly viewType = 'simpleBrowser.view' ;
20
- private static readonly title = localize ( 'view.title' , "Simple Browser" ) ;
18
+ private static readonly title = vscode . l10n . t ( "Simple Browser" ) ;
21
19
22
20
private readonly _webviewPanel : vscode . WebviewPanel ;
23
21
@@ -134,28 +132,28 @@ export class SimpleBrowserView extends Disposable {
134
132
<header class="header">
135
133
<nav class="controls">
136
134
<button
137
- title="${ localize ( 'control.back.title' , "Back" ) } "
135
+ title="${ vscode . l10n . t ( "Back" ) } "
138
136
class="back-button icon"><i class="codicon codicon-arrow-left"></i></button>
139
137
140
138
<button
141
- title="${ localize ( 'control.forward.title' , "Forward" ) } "
139
+ title="${ vscode . l10n . t ( "Forward" ) } "
142
140
class="forward-button icon"><i class="codicon codicon-arrow-right"></i></button>
143
141
144
142
<button
145
- title="${ localize ( 'control.reload.title' , "Reload" ) } "
143
+ title="${ vscode . l10n . t ( "Reload" ) } "
146
144
class="reload-button icon"><i class="codicon codicon-refresh"></i></button>
147
145
</nav>
148
146
149
147
<input class="url-input" type="text">
150
148
151
149
<nav class="controls">
152
150
<button
153
- title="${ localize ( 'control.openExternal.title' , "Open in browser" ) } "
151
+ title="${ vscode . l10n . t ( "Open in browser" ) } "
154
152
class="open-external-button icon"><i class="codicon codicon-link-external"></i></button>
155
153
</nav>
156
154
</header>
157
155
<div class="content">
158
- <div class="iframe-focused-alert">${ localize ( 'view.iframe-focused' , "Focus Lock" ) } </div>
156
+ <div class="iframe-focused-alert">${ vscode . l10n . t ( "Focus Lock" ) } </div>
159
157
<iframe sandbox="allow-scripts allow-forms allow-same-origin"></iframe>
160
158
</div>
161
159
0 commit comments