中英文切换
This commit is contained in:
@@ -25,7 +25,7 @@ export default function Downloads() {
|
||||
const { t } = useTranslation();
|
||||
const columns = [
|
||||
{
|
||||
title: '文件详情',
|
||||
title: t('video.fileDetails'),
|
||||
key: 'file',
|
||||
render: (record: any) => (
|
||||
<Space size="middle">
|
||||
@@ -40,13 +40,13 @@ export default function Downloads() {
|
||||
),
|
||||
},
|
||||
{
|
||||
title: '源设备',
|
||||
title: t('video.sourceDevice'),
|
||||
dataIndex: 'deviceName',
|
||||
key: 'deviceName',
|
||||
render: (text: string) => <Text style={{ fontSize: 13 }}>{text}</Text>,
|
||||
},
|
||||
{
|
||||
title: '起止时间',
|
||||
title: t('video.startEndTime'),
|
||||
key: 'duration',
|
||||
render: (record: any) => (
|
||||
<Space direction="vertical" size={0}>
|
||||
@@ -57,7 +57,7 @@ export default function Downloads() {
|
||||
),
|
||||
},
|
||||
{
|
||||
title: '容量',
|
||||
title: t('video.capacity'),
|
||||
dataIndex: 'size',
|
||||
key: 'size',
|
||||
render: (text: string) => <Text type="secondary" style={{ fontSize: 12 }}>{text}</Text>,
|
||||
@@ -72,7 +72,7 @@ export default function Downloads() {
|
||||
icon={<DownloadOutlined />}
|
||||
style={{ fontSize: 11, fontWeight: 'bold' }}
|
||||
>
|
||||
下载
|
||||
{t('common.download')}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
@@ -81,10 +81,10 @@ export default function Downloads() {
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<Title level={5} style={{ margin: 0 }}>视频回放中心</Title>
|
||||
<Title level={5} style={{ margin: 0 }}>{t('video.videoReplayCenter')}</Title>
|
||||
<Segmented
|
||||
options={['全部录像', '今日录像']}
|
||||
defaultValue="全部录像"
|
||||
options={[t('video.allRecordings'), t('video.todayRecordings')]}
|
||||
defaultValue={t('video.allRecordings')}
|
||||
style={{ borderRadius: 2 }}
|
||||
/>
|
||||
</div>
|
||||
@@ -94,7 +94,7 @@ export default function Downloads() {
|
||||
<Col>
|
||||
<Space>
|
||||
<CalendarOutlined style={{ color: 'rgba(0,0,0,0.45)' }} />
|
||||
<Text strong type="secondary" style={{ fontSize: 11, textTransform: 'uppercase' }}>时间跨度</Text>
|
||||
<Text strong type="secondary" style={{ fontSize: 11, textTransform: 'uppercase' }}>{t('video.timeSpan')}</Text>
|
||||
</Space>
|
||||
</Col>
|
||||
<Col>
|
||||
@@ -102,7 +102,7 @@ export default function Downloads() {
|
||||
</Col>
|
||||
<Col flex="auto" className="text-right">
|
||||
<Button type="primary" size="small" icon={<SearchOutlined />} style={{ borderRadius: 2 }}>
|
||||
联机检索
|
||||
{t('video.onlineSearch')}
|
||||
</Button>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
Reference in New Issue
Block a user