Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

fix(portal): translate policy category labels in PolicySummary (#6964)

ConnorYohe4379184b549
diff --git a/frontend/editor/src/portal/components/PolicySummary.tsx b/frontend/editor/src/portal/components/PolicySummary.tsx
index 29d93cda3c..cffb822387 100644
--- a/frontend/editor/src/portal/components/PolicySummary.tsx
+++ b/frontend/editor/src/portal/components/PolicySummary.tsx
@@ -67,8 +67,8 @@ export function PolicySummary() {
{policyIcon(entry.category.icon)}
</span>
<div className="portal-policysum__cat-text">
- <strong>{entry.category.label}</strong>
- <span>{entry.category.desc}</span>
+ <strong>{t(entry.category.label)}</strong>
+ <span>{t(entry.category.desc)}</span>
</div>
</div>
),
@@ -92,7 +92,7 @@ export function PolicySummary() {
render: ({ entry, state }) => (
<span className="portal-policysum__rule">
{state === "active"
- ? entry.config.summary
+ ? t(entry.config.summary)
: t("portal.policySummary.noRule")}
</span>
),