From aa82e82cb1aea57ca45312e651c597a14e45fceb Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 29 Mar 2026 10:53:47 -0400 Subject: [PATCH] Add translation hooks to SectionHeading copy in sharing ACL Co-Authored-By: Claude Opus 4.6 --- app/components/Sharing/Collection/AccessControlList.tsx | 4 ++-- app/components/Sharing/Document/AccessControlList.tsx | 6 +++--- shared/i18n/locales/en_US/translation.json | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/components/Sharing/Collection/AccessControlList.tsx b/app/components/Sharing/Collection/AccessControlList.tsx index 468f4b0053..ba2ae5b68f 100644 --- a/app/components/Sharing/Collection/AccessControlList.tsx +++ b/app/components/Sharing/Collection/AccessControlList.tsx @@ -164,7 +164,7 @@ export const AccessControlList = observer( }} > <> - General access + {t("General access")} {(showLoading || hasMemberships) && ( - People with access + {t("People with access")} )} {showLoading ? ( diff --git a/app/components/Sharing/Document/AccessControlList.tsx b/app/components/Sharing/Document/AccessControlList.tsx index 083d2d5ed2..362c153b4b 100644 --- a/app/components/Sharing/Document/AccessControlList.tsx +++ b/app/components/Sharing/Document/AccessControlList.tsx @@ -148,7 +148,7 @@ export const AccessControlList = observer( > {!document.isDraft && can.manageUsers && ( <> - General access + {t("General access")} - People with access + {t("People with access")} } title={document.createdBy?.name} @@ -230,7 +230,7 @@ export const AccessControlList = observer( ) : collection && canCollection.readDocument ? ( <> {(showLoading || hasMemberships) && ( - People with access + {t("People with access")} )} {showLoading ? ( diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 954eec482e..56b1e7dba6 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -429,9 +429,11 @@ "Everyone in workspace": "Everyone in workspace", "Restricted": "Restricted", "Manage": "Manage", + "General access": "General access", "Access": "Access", "Only invited users can access": "Only invited users can access", "All members of {{ itemName }}": "All members of {{ itemName }}", + "People with access": "People with access", "{{ count }} member": "{{ count }} member", "{{ count }} member_plural": "{{ count }} members", "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed",