From 0ecb3d6f846edf28dd10050043f6b1b530fd3e31 Mon Sep 17 00:00:00 2001
From: Pedro Bonamin <46196328+pedrobonamin@users.noreply.github.com>
Date: Tue, 18 Feb 2025 16:11:54 +0100
Subject: [PATCH] fix(core): revise wording for releases schedule actions
(#8692)
---
packages/sanity/src/core/releases/i18n/resources.ts | 12 ++++++------
.../detail/__tests__/ReleaseDashboardFooter.test.tsx | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/packages/sanity/src/core/releases/i18n/resources.ts b/packages/sanity/src/core/releases/i18n/resources.ts
index 321276a7603..2f82da99ff6 100644
--- a/packages/sanity/src/core/releases/i18n/resources.ts
+++ b/packages/sanity/src/core/releases/i18n/resources.ts
@@ -23,13 +23,13 @@ const releasesLocaleStrings = {
/** Action text for opening a release */
'action.open': 'Open',
/** Action text for scheduling a release */
- 'action.schedule': 'Schedule for publishing...',
+ 'action.schedule': 'Schedule release...',
/** Action text for unpublishing a document in a release in the context menu */
'action.unpublish': 'Unpublish',
/** Action message for scheduling an unpublished of a document */
'action.unpublish-doc-actions': 'Unpublish when releasing',
/** Action text for unscheduling a release */
- 'action.unschedule': 'Unschedule for publishing',
+ 'action.unschedule': 'Unschedule release',
/** Action text for publishing all documents in a release (and the release itself) */
'action.publish-all-documents': 'Run release',
/** Text for the review changes button in release tool */
@@ -258,19 +258,19 @@ const releasesLocaleStrings = {
'schedule-button-tooltip.already-scheduled': 'This release is already scheduled',
/** Title for unschedule release dialog */
- 'schedule-dialog.confirm-title': 'Schedule the release for publishing',
+ 'schedule-dialog.confirm-title': 'Schedule the release',
/** Description shown in unschedule relaease dialog */
'schedule-dialog.confirm-description_one':
"The '{{title}}' release and its document will be published on the selected date.",
/** Description for the dialog confirming the publish of a release with multiple documents */
'schedule-dialog.confirm-description_other':
- 'The {{title}} release and its {{count}} document versions will be scheduled for publishing.',
+ 'The {{title}} release and its {{count}} document versions will be scheduled.',
/** Description for the confirm button for scheduling a release */
- 'schedule-dialog.confirm-button': 'Yes, schedule for publishing',
+ 'schedule-dialog.confirm-button': 'Yes, schedule',
/** Label for date picker when scheduling a release */
- 'schedule-dialog.select-publish-date-label': 'Schedule for publishing on',
+ 'schedule-dialog.select-publish-date-label': 'Schedule on',
/** Title for unschedule release dialog */
'unschedule-dialog.confirm-title': 'Are you sure you want to unschedule the release?',
diff --git a/packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseDashboardFooter.test.tsx b/packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseDashboardFooter.test.tsx
index 5f90e529c2e..201c3b4f876 100644
--- a/packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseDashboardFooter.test.tsx
+++ b/packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseDashboardFooter.test.tsx
@@ -52,7 +52,7 @@ describe('ReleaseDashboardFooter', () => {
test('shows unschedule button', async () => {
await renderTest({release: activeScheduledRelease})
- expect(screen.getByText('Schedule for publishing...')).toBeInTheDocument()
+ expect(screen.getByText('Schedule release...')).toBeInTheDocument()
})
})
@@ -81,7 +81,7 @@ describe('ReleaseDashboardFooter', () => {
test('shows unschedule button', async () => {
await renderTest({release: scheduledRelease})
- expect(screen.getByText('Unschedule for publishing')).toBeInTheDocument()
+ expect(screen.getByText('Unschedule release')).toBeInTheDocument()
})
})