中英文切换 初始化

This commit is contained in:
mmc
2026-08-12 11:29:44 +08:00
parent 541e16f742
commit a8af55a856
76 changed files with 5847 additions and 1962 deletions

View File

@@ -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: () => (