(text: string)
| 148 | } |
| 149 | } |
| 150 | |
| 151 | // HTML转义函数 |
| 152 | // 将系统状态信息翻译成中文 |
| 153 | function translateToChinese(text: string): string { |
| 154 | // 逐行处理 |
| 155 | const lines = text.split("\n"); |
| 156 | const translatedLines: string[] = []; |
| 157 | |
| 158 | for (const line of lines) { |
| 159 | let translatedLine = line; |
| 160 | |
| 161 | // 首先处理时间格式 |
| 162 | if (line.includes("Started:") || line.includes("启动时间:")) { |
| 163 | // 提取时间部分并格式化 |
| 164 | const timeMatch = line.match(/(启动时间:|Started:)\s*(.+)/); |
no outgoing calls
no test coverage detected