fix(i18n): mark table headers for translation (#2174)

This commit is contained in:
Konrad
2025-12-01 01:20:18 +01:00
committed by GitHub
parent d5e085d7ee
commit a610a06372
5 changed files with 6 additions and 6 deletions
@@ -51,7 +51,7 @@ export const AdminDashboardUsersTable = ({
const columns = useMemo(() => {
return [
{
header: 'ID',
header: _(msg`ID`),
accessorKey: 'id',
cell: ({ row }) => <div>{row.original.id}</div>,
},
@@ -57,7 +57,7 @@ export const AdminDocumentRecipientItemTable = ({ recipient }: RecipientItemProp
const columns = useMemo(() => {
return [
{
header: 'ID',
header: _(msg`ID`),
accessorKey: 'id',
cell: ({ row }) => <div>{row.original.id}</div>,
},
@@ -96,11 +96,11 @@ export const DocumentLogsTable = ({ documentId }: DocumentLogsTableProps) => {
cell: ({ row }) => <span>{formatDocumentAuditLogAction(_, row.original).description}</span>,
},
{
header: 'IP Address',
header: _(msg`IP Address`),
accessorKey: 'ipAddress',
},
{
header: 'Browser',
header: _(msg`Browser`),
cell: ({ row }) => {
if (!row.original.userAgent) {
return 'N/A';
@@ -104,7 +104,7 @@ export const SettingsSecurityActivityTable = () => {
},
},
{
header: 'IP Address',
header: _(msg`IP Address`),
accessorKey: 'ipAddress',
cell: ({ row }) => row.original.ipAddress ?? 'N/A',
},
@@ -114,7 +114,7 @@ export default function AdminDocumentsPage() {
},
},
{
header: 'Last updated',
header: _(msg`Last updated`),
accessorKey: 'updatedAt',
cell: ({ row }) => i18n.date(row.original.updatedAt),
},