支持多语言英文

This commit is contained in:
whyour committed 2023-07-29 18:26:30 +08:00
1 parent 39bfd39559
commit e7d023a7e0
68 files changed
+2186 -982

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
import intl from 'react-intl-universal';
import { LOG_END_SYMBOL } from './const';
import cron_parser from 'cron-parser';
@@ -297,7 +298,7 @@ export function findNode<T extends Record<string, any> & { children?: T[] }>(
}
export function logEnded(log: string): boolean {
const endTips = [LOG_END_SYMBOL, '执行结束'];
const endTips = [LOG_END_SYMBOL, intl.get('执行结束')];
return endTips.some((x) => log.includes(x));
}