中英文切换 初始化
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
Table,
|
||||
Button,
|
||||
@@ -21,6 +22,7 @@ const { Text, Title } = Typography;
|
||||
const { RangePicker } = DatePicker;
|
||||
|
||||
export default function Downloads() {
|
||||
const { t } = useTranslation();
|
||||
const columns = [
|
||||
{
|
||||
title: '文件详情',
|
||||
@@ -61,7 +63,7 @@ export default function Downloads() {
|
||||
render: (text: string) => <Text type="secondary" style={{ fontSize: 12 }}>{text}</Text>,
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
title: t('roles.actions'),
|
||||
key: 'action',
|
||||
align: 'right' as const,
|
||||
render: () => (
|
||||
|
||||
Reference in New Issue
Block a user