From 2c99cfacc08640fb73b0ae6f00f0bd0f0247899c Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Mon, 13 Oct 2025 14:39:41 -0700 Subject: [PATCH] fix header auth formatting --- messages/en-US.json | 7 ++++--- .../resources/[niceId]/authentication/page.tsx | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/messages/en-US.json b/messages/en-US.json index b7470f62..01047ecd 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -1745,9 +1745,10 @@ "resourceHeaderAuthRemoveDescription": "Header authentication removed successfully.", "resourceErrorHeaderAuthRemove": "Failed to remove Header Authentication", "resourceErrorHeaderAuthRemoveDescription": "Could not remove header authentication for the resource.", - "resourceHeaderAuthProtection": "Header Authentication Protection: {{status}}", - "headerAuthRemove": "Remove", - "headerAuthAdd": "Add", + "resourceHeaderAuthProtectionEnabled": "Header Authentication Enabled", + "resourceHeaderAuthProtectionDisabled": "Header Authentication Disabled", + "headerAuthRemove": "Remove Header Auth", + "headerAuthAdd": "Add Header Auth", "resourceErrorHeaderAuthSetup": "Failed to set Header Authentication", "resourceErrorHeaderAuthSetupDescription": "Could not set header authentication for the resource.", "resourceHeaderAuthSetup": "Header Authentication set successfully", diff --git a/src/app/[orgId]/settings/resources/[niceId]/authentication/page.tsx b/src/app/[orgId]/settings/resources/[niceId]/authentication/page.tsx index fb79c59a..e0ab26c7 100644 --- a/src/app/[orgId]/settings/resources/[niceId]/authentication/page.tsx +++ b/src/app/[orgId]/settings/resources/[niceId]/authentication/page.tsx @@ -836,11 +836,11 @@ export default function ResourceAuthenticationPage() { > - {t("resourceHeaderAuthProtection", { - status: authInfo.headerAuth - ? t("enabled") - : t("disabled") - })} + {authInfo.headerAuth + ? t("resourceHeaderAuthProtection") + : t( + "resourceHeaderAuthProtectionDisabled" + )}