1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-11-15 22:41:05 +03:00

Wrap intl in span identifying translation

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

View File

@@ -1,4 +1,4 @@
import { intl } from "src/locale";
import { T } from "src/locale";
interface Props {
roles: string[];
@@ -12,7 +12,7 @@ export function RolesFormatter({ roles }: Props) {
<>
{r.map((role: string) => (
<span key={role} className="badge bg-yellow-lt me-1">
{intl.formatMessage({ id: `role.${role}` })}
<T id={`role.${role}`} />
</span>
))}
</>