feat(logs): add i18n translation support

Signed-off-by: kunish <kunish.butt@gmail.com>
This commit is contained in:
kunish 2023-09-08 21:22:34 +08:00
parent f2ef7790dd
commit 965ec502ac
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
3 changed files with 7 additions and 0 deletions

View File

@ -72,4 +72,6 @@ export default {
latencyTestTimeoutDuration: 'Latency Test Timeout Duration',
closedConnections: 'Closed Connections',
all: 'All',
sequence: 'Sequence',
payload: 'Payload',
}

View File

@ -71,4 +71,6 @@ export default {
latencyTestTimeoutDuration: '测速超时时间',
closedConnections: '已关闭连接',
all: '全部',
sequence: '序列号',
payload: '内容',
}

View File

@ -35,14 +35,17 @@ export default () => {
const columns: ColumnDef<LogWithSeq>[] = [
{
accessorKey: 'Sequence',
header: t('sequence'),
accessorFn: (row) => row.seq,
},
{
accessorKey: 'Type',
header: t('type'),
accessorFn: (row) => row.type,
},
{
accessorKey: 'Payload',
header: t('payload'),
accessorFn: (row) => row.payload,
},
]