支持多语言英文

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
+3 -2
View File
@@ -1,3 +1,4 @@
import intl from 'react-intl-universal';
import React, { useEffect, useState } from 'react';
import { Modal, message, Input, Form, Statistic, Button } from 'antd';
import { request } from '@/utils/http';
@@ -43,7 +44,7 @@ const SubscriptionLogModal = ({
localStorage.getItem('logSubscription') === String(subscription.id)
) {
const log = data as string;
setValue(log || '暂无日志');
setValue(log || intl.get('暂无日志'));
setExecuting(log && !logEnded(log));
if (log && !logEnded(log)) {
setTimeout(() => {
@@ -106,7 +107,7 @@ const SubscriptionLogModal = ({
onCancel={() => cancel()}
footer={[
<Button type="primary" onClick={() => cancel()}>
{intl.get('知道了')}
</Button>,
]}
>