Wrap intl in span identifying translation

This commit is contained in:
Jamie Curnow committed 2025-10-02 23:06:51 +10:00
1 parent fcb08d3003
commit 227e818040
68 files changed
+1076 -510

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ import { useMemo } from "react";
import type { AuditLog } from "src/api/backend";
import { EventFormatter, GravatarFormatter } from "src/components";
import { TableLayout } from "src/components/Table/TableLayout";
import { intl } from "src/locale";
import { intl, T } from "src/locale";
interface Props {
data: AuditLog[];
@@ -47,7 +47,7 @@ export default function Table({ data, isFetching, onSelectItem }: Props) {
onSelectItem?.(info.row.original.id);
}}
>
{intl.formatMessage({ id: "action.view-details" })}
<T id="action.view-details" />
</button>
);
},
+4 -2
View File
@@ -2,7 +2,7 @@ import { useState } from "react";
import Alert from "react-bootstrap/Alert";
import { LoadingPage } from "src/components";
import { useAuditLogs } from "src/hooks";
import { intl } from "src/locale";
import { T } from "src/locale";
import { EventDetailsModal } from "src/modals";
import Table from "./Table";
@@ -25,7 +25,9 @@ export default function TableWrapper() {
<div className="card-header">
<div className="row w-full">
<div className="col">
<h2 className="mt-1 mb-0">{intl.formatMessage({ id: "auditlog.title" })}</h2>
<h2 className="mt-1 mb-0">
<T id="auditlog.title" />
</h2>
</div>
</div>
</div>