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

fix(i18n): fill missing translations in i18n.
This commit is contained in:
Seefs
2025-11-30 16:31:52 +08:00
committed by GitHub
parent c07331ee21
commit 8d0827cb9e
5 changed files with 431 additions and 135 deletions

View File

@@ -20,6 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
import React, { useState, useEffect } from 'react';
import { Modal, Button, Typography, Spin } from '@douyinfe/semi-ui';
import { IconExternalOpen, IconCopy } from '@douyinfe/semi-icons';
import { useTranslation } from 'react-i18next';
const { Text } = Typography;
@@ -29,6 +30,7 @@ const ContentModal = ({
modalContent,
isVideo,
}) => {
const { t } = useTranslation();
const [videoError, setVideoError] = useState(false);
const [isLoading, setIsLoading] = useState(false);
@@ -64,25 +66,25 @@ const ContentModal = ({
type='tertiary'
style={{ display: 'block', marginBottom: '16px' }}
>
视频无法在当前浏览器中播放这可能是由于
{t('视频无法在当前浏览器中播放这可能是由于:')}
</Text>
<Text
type='tertiary'
style={{ display: 'block', marginBottom: '8px', fontSize: '12px' }}
>
视频服务商的跨域限制
{t('• 视频服务商的跨域限制')}
</Text>
<Text
type='tertiary'
style={{ display: 'block', marginBottom: '8px', fontSize: '12px' }}
>
需要特定的请求头或认证
{t('• 需要特定的请求头或认证')}
</Text>
<Text
type='tertiary'
style={{ display: 'block', marginBottom: '16px', fontSize: '12px' }}
>
防盗链保护机制
{t('• 防盗链保护机制')}
</Text>
<div style={{ marginTop: '20px' }}>
@@ -91,10 +93,10 @@ const ContentModal = ({
onClick={handleOpenInNewTab}
style={{ marginRight: '8px' }}
>
在新标签页中打开
{t('在新标签页中打开')}
</Button>
<Button icon={<IconCopy />} onClick={handleCopyUrl}>
复制链接
{t('复制链接')}
</Button>
</div>