mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
支持多语言英文
This commit is contained in:
1 parent
39bfd39559
commit
e7d023a7e0
68 files changed
+2186
-982
No files matched your search
+2
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user