支持多语言英文

This commit is contained in:
whyour
2023-07-29 18:26:30 +08:00
parent 39bfd39559
commit e7d023a7e0
68 changed files with 2186 additions and 982 deletions
+9 -6
View File
@@ -1,3 +1,4 @@
import intl from 'react-intl-universal';
import React, { useState, useEffect, useRef } from 'react';
import config from '@/utils/config';
import { request } from '@/utils/http';
@@ -54,22 +55,24 @@ const Error = () => {
type="error"
message={
<Typography.Title level={5} type="danger">
{intl.get('服务启动超时')}
</Typography.Title>
}
description={
<Typography.Text type="danger">
<div></div>
<div>{intl.get('请先按如下方式修复:')}</div>
<div>
1. 宿 docker run --rm -v
/var/run/docker.sock:/var/run/docker.sock
containrrr/watchtower -cR &lt;&gt;
</div>
<div>2. ql -l checkql -l update</div>
<div>{intl.get('2. 容器内执行 ql -l check、ql -l update')}</div>
<div>
3. pm2 logs
{intl.get(
'3. 如果无法解决,容器内执行 pm2 logs,拷贝执行结果',
)}
<Typography.Link href="https://github.com/whyour/qinglong/issues/new?assignees=&labels=&template=bug_report.yml">
issue
{intl.get('提交 issue')}
</Typography.Link>
</div>
</Typography.Text>
@@ -81,7 +84,7 @@ const Error = () => {
</Typography.Paragraph>
</div>
) : (
<PageLoading tip="启动中,请稍后..." />
<PageLoading tip={intl.get('启动中,请稍后...')} />
)}
</div>
);