chore(core): 调整一些模块的多语言支持

This commit is contained in:
王立帮
2025-04-27 15:57:39 +08:00
parent 9920166930
commit c834ce9914
5 changed files with 12 additions and 629 deletions

View File

@@ -70,7 +70,7 @@ class WebSocketArduShell {
this.initCompile = function () {
if (!this.mixlySocket.isConnected()) {
layer.msg('服务端已离线', { time: 1000 });
layer.msg(Msg.Lang['websocket.offline'], { time: 1000 });
return;
}
const { mainStatusBarTabs } = Mixly;
@@ -93,7 +93,7 @@ class WebSocketArduShell {
this.initUpload = function () {
if (!this.mixlySocket.isConnected()) {
layer.msg('服务端已离线', { time: 1000 });
layer.msg(Msg.Lang['websocket.offline'], { time: 1000 });
return;
}
const port = Serial.getSelectedPortName();

View File

@@ -68,7 +68,7 @@ class WebSocketBU {
this.initBurn = function () {
if (!this.mixlySocket.isConnected()) {
layer.msg('服务端已离线', { time: 1000 });
layer.msg(Msg.Lang['websocket.offline'], { time: 1000 });
return;
}
const port = Serial.getSelectedPortName();
@@ -100,7 +100,7 @@ class WebSocketBU {
this.initUpload = function () {
if (!this.mixlySocket.isConnected()) {
layer.msg('服务端已离线', { time: 1000 });
layer.msg(Msg.Lang['websocket.offline'], { time: 1000 });
return;
}
const port = Serial.getSelectedPortName();