File tree 1 file changed +13
-2
lines changed
arduino-ide-extension/src/browser
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 3
3
Disposable ,
4
4
Emitter ,
5
5
MessageService ,
6
+ nls ,
6
7
} from '@theia/core' ;
7
8
import { inject , injectable } from '@theia/core/shared/inversify' ;
8
9
import { Board , Port } from '../common/protocol' ;
@@ -77,7 +78,12 @@ export class MonitorManagerProxyClientImpl
77
78
try {
78
79
this . webSocket = new WebSocket ( `ws://localhost:${ addressPort } ` ) ;
79
80
} catch {
80
- this . messageService . error ( 'Unable to connect to websocket' ) ;
81
+ this . messageService . error (
82
+ nls . localize (
83
+ 'arduino/monitor/unableToConnectToWebSocket' ,
84
+ 'Unable to connect to websocket'
85
+ )
86
+ ) ;
81
87
return ;
82
88
}
83
89
@@ -106,7 +112,12 @@ export class MonitorManagerProxyClientImpl
106
112
this . webSocket ?. close ( ) ;
107
113
this . webSocket = undefined ;
108
114
} catch {
109
- this . messageService . error ( 'Unable to close websocket' ) ;
115
+ this . messageService . error (
116
+ nls . localize (
117
+ 'arduino/monitor/unableToConnectToWebSocket' ,
118
+ 'Unable to close websocket'
119
+ )
120
+ ) ;
110
121
}
111
122
}
112
123
You can’t perform that action at this time.
0 commit comments