Skip to content

Commit

Permalink
feat(logs): add i18n translation support
Browse files Browse the repository at this point in the history
Signed-off-by: kunish <kunish.butt@gmail.com>
  • Loading branch information
kunish committed Sep 8, 2023
1 parent f2ef779 commit 965ec50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ export default {
latencyTestTimeoutDuration: 'Latency Test Timeout Duration',
closedConnections: 'Closed Connections',
all: 'All',
sequence: 'Sequence',
payload: 'Payload',
}
2 changes: 2 additions & 0 deletions src/i18n/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,6 @@ export default {
latencyTestTimeoutDuration: '测速超时时间',
closedConnections: '已关闭连接',
all: '全部',
sequence: '序列号',
payload: '内容',
}
3 changes: 3 additions & 0 deletions src/pages/Logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
]
Expand Down

0 comments on commit 965ec50

Please sign in to comment.