chore: benchmark detail locales

This commit is contained in:
jialin
2026-02-01 20:22:25 +08:00
parent 7b4d60b576
commit 043218937f
23 changed files with 450 additions and 242 deletions
+9 -2
View File
@@ -77,7 +77,10 @@ const Benchmark: React.FC = () => {
}, []);
const handleAddBenchmark = () => {
openBenchmarkModal(PageAction.CREATE, 'Add Benchmark');
openBenchmarkModal(
PageAction.CREATE,
intl.formatMessage({ id: 'benchmark.button.add' })
);
};
const handleModalOk = async (data: FormData) => {
@@ -108,7 +111,11 @@ const Benchmark: React.FC = () => {
};
const handleEditUser = (row: ListItem) => {
openBenchmarkModal(PageAction.EDIT, 'Edit Benchmark', row);
openBenchmarkModal(
PageAction.EDIT,
intl.formatMessage({ id: 'benchmark.button.edit' }),
row
);
};
const handleSelect = useMemoizedFn((val: any, row: ListItem) => {