mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-14 06:25:35 +08:00
feat(logs): add i18n translation support
Signed-off-by: kunish <kunish.butt@gmail.com>
This commit is contained in:
parent
f2ef7790dd
commit
965ec502ac
@ -72,4 +72,6 @@ export default {
|
|||||||
latencyTestTimeoutDuration: 'Latency Test Timeout Duration',
|
latencyTestTimeoutDuration: 'Latency Test Timeout Duration',
|
||||||
closedConnections: 'Closed Connections',
|
closedConnections: 'Closed Connections',
|
||||||
all: 'All',
|
all: 'All',
|
||||||
|
sequence: 'Sequence',
|
||||||
|
payload: 'Payload',
|
||||||
}
|
}
|
||||||
|
@ -71,4 +71,6 @@ export default {
|
|||||||
latencyTestTimeoutDuration: '测速超时时间',
|
latencyTestTimeoutDuration: '测速超时时间',
|
||||||
closedConnections: '已关闭连接',
|
closedConnections: '已关闭连接',
|
||||||
all: '全部',
|
all: '全部',
|
||||||
|
sequence: '序列号',
|
||||||
|
payload: '内容',
|
||||||
}
|
}
|
||||||
|
@ -35,14 +35,17 @@ export default () => {
|
|||||||
const columns: ColumnDef<LogWithSeq>[] = [
|
const columns: ColumnDef<LogWithSeq>[] = [
|
||||||
{
|
{
|
||||||
accessorKey: 'Sequence',
|
accessorKey: 'Sequence',
|
||||||
|
header: t('sequence'),
|
||||||
accessorFn: (row) => row.seq,
|
accessorFn: (row) => row.seq,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'Type',
|
accessorKey: 'Type',
|
||||||
|
header: t('type'),
|
||||||
accessorFn: (row) => row.type,
|
accessorFn: (row) => row.type,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'Payload',
|
accessorKey: 'Payload',
|
||||||
|
header: t('payload'),
|
||||||
accessorFn: (row) => row.payload,
|
accessorFn: (row) => row.payload,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user