From 85476976d12859e11a4219a5c1628954906c6f98 Mon Sep 17 00:00:00 2001 From: Drew Lyton Date: Thu, 26 Sep 2024 11:40:21 -0400 Subject: [PATCH] feat: update i18n strings --- .../requestPermissionDialog/RequestPermissionDialog.tsx | 3 +-- packages/sanity/src/structure/i18n/resources.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/sanity/src/structure/components/requestPermissionDialog/RequestPermissionDialog.tsx b/packages/sanity/src/structure/components/requestPermissionDialog/RequestPermissionDialog.tsx index 40d935dd7d6..00428f7c71a 100644 --- a/packages/sanity/src/structure/components/requestPermissionDialog/RequestPermissionDialog.tsx +++ b/packages/sanity/src/structure/components/requestPermissionDialog/RequestPermissionDialog.tsx @@ -56,7 +56,7 @@ export function RequestPermissionDialog({ const {t} = useTranslation(structureLocaleNamespace) const dialogId = `request-permissions-${useId()}` const projectId = useProjectId() - const client = useClient() + const client = useClient({apiVersion: '2024-09-26'}) const toast = useToast() const [isSubmitting, setIsSubmitting] = useState(false) @@ -149,7 +149,6 @@ export function RequestPermissionDialog({ {t('request-permission-dialog.description.text')} - {t('request-permission-dialog.note-input.description.text')} {hasTooManyRequests || hasBeenDenied ? ( diff --git a/packages/sanity/src/structure/i18n/resources.ts b/packages/sanity/src/structure/i18n/resources.ts index 6b16a0e6434..e197a457a94 100644 --- a/packages/sanity/src/structure/i18n/resources.ts +++ b/packages/sanity/src/structure/i18n/resources.ts @@ -417,9 +417,9 @@ const structureLocaleStrings = defineLocalesResources('structure', { 'request-permission-dialog.confirm-button.text': 'Send request', /** The description text for the request permission dialog used in the permissions banner */ 'request-permission-dialog.description.text': - 'A request will be made to administrators asking to grant you increased permission to this project.', + "Your request will be sent to the project administrator(s). If you'd like, you can also include a note", /** The header/title for the request permission dialog used in the permissions banner */ - 'request-permission-dialog.header.text': 'Ask to edit', + 'request-permission-dialog.header.text': 'Ask for edit access', /** The text describing the note input for the request permission dialog used in the permissions banner */ 'request-permission-dialog.note-input.description.text': "If you'd like, you can add a note", /** The placeholder for the note input in the request permission dialog used in the permissions banner */