Add translation hooks to SectionHeading copy in sharing ACL

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom MoorandClaude Opus 4.6 committed 2026-03-29 10:53:47 -04:00
1 parent 71bde15a2f
commit aa82e82cb1
3 files changed
+7 -5

No files matched your search

@@ -164,7 +164,7 @@ export const AccessControlList = observer(
}}
>
<>
<SectionHeading>General access</SectionHeading>
<SectionHeading>{t("General access")}</SectionHeading>
<ListItem
image={
collection.isPrivate ? (
@@ -223,7 +223,7 @@ export const AccessControlList = observer(
}
/>
{(showLoading || hasMemberships) && (
<SectionHeading>People with access</SectionHeading>
<SectionHeading>{t("People with access")}</SectionHeading>
)}
{showLoading ? (
<Placeholder />
@@ -148,7 +148,7 @@ export const AccessControlList = observer(
>
{!document.isDraft && can.manageUsers && (
<>
<SectionHeading>General access</SectionHeading>
<SectionHeading>{t("General access")}</SectionHeading>
<ListItem
image={
document.isPrivate || collection?.isPrivate ? (
@@ -208,7 +208,7 @@ export const AccessControlList = observer(
)}
{document.isDraft ? (
<>
<SectionHeading>People with access</SectionHeading>
<SectionHeading>{t("People with access")}</SectionHeading>
<ListItem
image={<Avatar model={document.createdBy} />}
title={document.createdBy?.name}
@@ -230,7 +230,7 @@ export const AccessControlList = observer(
) : collection && canCollection.readDocument ? (
<>
{(showLoading || hasMemberships) && (
<SectionHeading>People with access</SectionHeading>
<SectionHeading>{t("People with access")}</SectionHeading>
)}
{showLoading ? (
<Placeholder />
@@ -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",