mirror of
https://github.com/documenso/documenso.git
synced 2026-07-27 02:15:05 +10:00
fix(i18n): mark table headers for translation (#2174)
This commit is contained in:
@@ -51,7 +51,7 @@ export const AdminDashboardUsersTable = ({
|
|||||||
const columns = useMemo(() => {
|
const columns = useMemo(() => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
header: 'ID',
|
header: _(msg`ID`),
|
||||||
accessorKey: 'id',
|
accessorKey: 'id',
|
||||||
cell: ({ row }) => <div>{row.original.id}</div>,
|
cell: ({ row }) => <div>{row.original.id}</div>,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export const AdminDocumentRecipientItemTable = ({ recipient }: RecipientItemProp
|
|||||||
const columns = useMemo(() => {
|
const columns = useMemo(() => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
header: 'ID',
|
header: _(msg`ID`),
|
||||||
accessorKey: 'id',
|
accessorKey: 'id',
|
||||||
cell: ({ row }) => <div>{row.original.id}</div>,
|
cell: ({ row }) => <div>{row.original.id}</div>,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -96,11 +96,11 @@ export const DocumentLogsTable = ({ documentId }: DocumentLogsTableProps) => {
|
|||||||
cell: ({ row }) => <span>{formatDocumentAuditLogAction(_, row.original).description}</span>,
|
cell: ({ row }) => <span>{formatDocumentAuditLogAction(_, row.original).description}</span>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'IP Address',
|
header: _(msg`IP Address`),
|
||||||
accessorKey: 'ipAddress',
|
accessorKey: 'ipAddress',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Browser',
|
header: _(msg`Browser`),
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
if (!row.original.userAgent) {
|
if (!row.original.userAgent) {
|
||||||
return 'N/A';
|
return 'N/A';
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export const SettingsSecurityActivityTable = () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'IP Address',
|
header: _(msg`IP Address`),
|
||||||
accessorKey: 'ipAddress',
|
accessorKey: 'ipAddress',
|
||||||
cell: ({ row }) => row.original.ipAddress ?? 'N/A',
|
cell: ({ row }) => row.original.ipAddress ?? 'N/A',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export default function AdminDocumentsPage() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Last updated',
|
header: _(msg`Last updated`),
|
||||||
accessorKey: 'updatedAt',
|
accessorKey: 'updatedAt',
|
||||||
cell: ({ row }) => i18n.date(row.original.updatedAt),
|
cell: ({ row }) => i18n.date(row.original.updatedAt),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user