mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-29 01:17:52 +01:00
Wrap intl in span identifying translation
This commit is contained in:
68 files changed
+1076
-510
No files matched your search
@@ -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>
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user