Skip to content

Commit 3c73a2c

Browse files
committed
fix(adev): 还原不应该翻译的信息,否则会对状态判断产生影响
1 parent 33adc10 commit 3c73a2c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adev/src/app/editor/node-runtime-sandbox.service.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ import {ErrorType, NodeRuntimeState} from './node-runtime-state.service';
2020
import {TerminalHandler} from './terminal/terminal-handler.service';
2121
import {TypingsLoader} from './typings-loader.service';
2222

23-
export const DEV_SERVER_READY_MSG = '监视模式已启用。正在监视文件更改...';
24-
export const OUT_OF_MEMORY_MSG = '内存不足';
23+
// 这两个不能翻译,因为它是用于判断状态的信息
24+
export const DEV_SERVER_READY_MSG = 'Watch mode enabled. Watching for file changes...';
25+
export const OUT_OF_MEMORY_MSG = 'Out of memory';
2526

2627
const enum PROCESS_EXIT_CODE {
2728
SUCCESS = 0, // process exited successfully
@@ -79,7 +80,7 @@ export class NodeRuntimeSandbox {
7980

8081
try {
8182
if (!this.embeddedTutorialManager.type())
82-
throw Error("教程类型不可用,无法初始化 NodeRuntimeSandbox。");
83+
throw Error('教程类型不可用,无法初始化 NodeRuntimeSandbox。');
8384

8485
console.time('加载时间');
8586

0 commit comments

Comments
 (0)