From a610a06372d744fa005ac7b389c8008a3e642bac Mon Sep 17 00:00:00 2001 From: Konrad <11725227+mKoonrad@users.noreply.github.com> Date: Mon, 1 Dec 2025 01:20:18 +0100 Subject: [PATCH] fix(i18n): mark table headers for translation (#2174) --- .../app/components/tables/admin-dashboard-users-table.tsx | 2 +- .../components/tables/admin-document-recipient-item-table.tsx | 2 +- apps/remix/app/components/tables/document-logs-table.tsx | 4 ++-- .../components/tables/settings-security-activity-table.tsx | 2 +- .../app/routes/_authenticated+/admin+/documents._index.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/remix/app/components/tables/admin-dashboard-users-table.tsx b/apps/remix/app/components/tables/admin-dashboard-users-table.tsx index c409f7d2c..b54b3484e 100644 --- a/apps/remix/app/components/tables/admin-dashboard-users-table.tsx +++ b/apps/remix/app/components/tables/admin-dashboard-users-table.tsx @@ -51,7 +51,7 @@ export const AdminDashboardUsersTable = ({ const columns = useMemo(() => { return [ { - header: 'ID', + header: _(msg`ID`), accessorKey: 'id', cell: ({ row }) =>
{row.original.id}
, }, diff --git a/apps/remix/app/components/tables/admin-document-recipient-item-table.tsx b/apps/remix/app/components/tables/admin-document-recipient-item-table.tsx index 89a9366b1..ccd7926f2 100644 --- a/apps/remix/app/components/tables/admin-document-recipient-item-table.tsx +++ b/apps/remix/app/components/tables/admin-document-recipient-item-table.tsx @@ -57,7 +57,7 @@ export const AdminDocumentRecipientItemTable = ({ recipient }: RecipientItemProp const columns = useMemo(() => { return [ { - header: 'ID', + header: _(msg`ID`), accessorKey: 'id', cell: ({ row }) =>
{row.original.id}
, }, diff --git a/apps/remix/app/components/tables/document-logs-table.tsx b/apps/remix/app/components/tables/document-logs-table.tsx index a042c6a44..38f45cbb9 100644 --- a/apps/remix/app/components/tables/document-logs-table.tsx +++ b/apps/remix/app/components/tables/document-logs-table.tsx @@ -96,11 +96,11 @@ export const DocumentLogsTable = ({ documentId }: DocumentLogsTableProps) => { cell: ({ row }) => {formatDocumentAuditLogAction(_, row.original).description}, }, { - header: 'IP Address', + header: _(msg`IP Address`), accessorKey: 'ipAddress', }, { - header: 'Browser', + header: _(msg`Browser`), cell: ({ row }) => { if (!row.original.userAgent) { return 'N/A'; diff --git a/apps/remix/app/components/tables/settings-security-activity-table.tsx b/apps/remix/app/components/tables/settings-security-activity-table.tsx index 9001425c6..18bba7d62 100644 --- a/apps/remix/app/components/tables/settings-security-activity-table.tsx +++ b/apps/remix/app/components/tables/settings-security-activity-table.tsx @@ -104,7 +104,7 @@ export const SettingsSecurityActivityTable = () => { }, }, { - header: 'IP Address', + header: _(msg`IP Address`), accessorKey: 'ipAddress', cell: ({ row }) => row.original.ipAddress ?? 'N/A', }, diff --git a/apps/remix/app/routes/_authenticated+/admin+/documents._index.tsx b/apps/remix/app/routes/_authenticated+/admin+/documents._index.tsx index 0504fed76..d7bc18be8 100644 --- a/apps/remix/app/routes/_authenticated+/admin+/documents._index.tsx +++ b/apps/remix/app/routes/_authenticated+/admin+/documents._index.tsx @@ -114,7 +114,7 @@ export default function AdminDocumentsPage() { }, }, { - header: 'Last updated', + header: _(msg`Last updated`), accessorKey: 'updatedAt', cell: ({ row }) => i18n.date(row.original.updatedAt), },