Commit 10543789 by Seefs Committed by GitHub

Merge pull request #2314 from seefs001/fix/i18n-missing

fix(i18n): fill missing translations in i18n.
parent e1223e57
...@@ -20,6 +20,7 @@ For commercial licensing, please contact support@quantumnous.com ...@@ -20,6 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Modal, Button, Typography, Spin } from '@douyinfe/semi-ui'; import { Modal, Button, Typography, Spin } from '@douyinfe/semi-ui';
import { IconExternalOpen, IconCopy } from '@douyinfe/semi-icons'; import { IconExternalOpen, IconCopy } from '@douyinfe/semi-icons';
import { useTranslation } from 'react-i18next';
const { Text } = Typography; const { Text } = Typography;
...@@ -29,6 +30,7 @@ const ContentModal = ({ ...@@ -29,6 +30,7 @@ const ContentModal = ({
modalContent, modalContent,
isVideo, isVideo,
}) => { }) => {
const { t } = useTranslation();
const [videoError, setVideoError] = useState(false); const [videoError, setVideoError] = useState(false);
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
...@@ -64,25 +66,25 @@ const ContentModal = ({ ...@@ -64,25 +66,25 @@ const ContentModal = ({
type='tertiary' type='tertiary'
style={{ display: 'block', marginBottom: '16px' }} style={{ display: 'block', marginBottom: '16px' }}
> >
视频无法在当前浏览器中播放,这可能是由于: {t('视频无法在当前浏览器中播放,这可能是由于:')}
</Text> </Text>
<Text <Text
type='tertiary' type='tertiary'
style={{ display: 'block', marginBottom: '8px', fontSize: '12px' }} style={{ display: 'block', marginBottom: '8px', fontSize: '12px' }}
> >
• 视频服务商的跨域限制 {t('• 视频服务商的跨域限制')}
</Text> </Text>
<Text <Text
type='tertiary' type='tertiary'
style={{ display: 'block', marginBottom: '8px', fontSize: '12px' }} style={{ display: 'block', marginBottom: '8px', fontSize: '12px' }}
> >
• 需要特定的请求头或认证 {t('• 需要特定的请求头或认证')}
</Text> </Text>
<Text <Text
type='tertiary' type='tertiary'
style={{ display: 'block', marginBottom: '16px', fontSize: '12px' }} style={{ display: 'block', marginBottom: '16px', fontSize: '12px' }}
> >
• 防盗链保护机制 {t('• 防盗链保护机制')}
</Text> </Text>
<div style={{ marginTop: '20px' }}> <div style={{ marginTop: '20px' }}>
...@@ -91,10 +93,10 @@ const ContentModal = ({ ...@@ -91,10 +93,10 @@ const ContentModal = ({
onClick={handleOpenInNewTab} onClick={handleOpenInNewTab}
style={{ marginRight: '8px' }} style={{ marginRight: '8px' }}
> >
在新标签页中打开 {t('在新标签页中打开')}
</Button> </Button>
<Button icon={<IconCopy />} onClick={handleCopyUrl}> <Button icon={<IconCopy />} onClick={handleCopyUrl}>
复制链接 {t('复制链接')}
</Button> </Button>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment