From 7cf3b66a6d5ab42a38d67c4e80f93f87f3b4616c Mon Sep 17 00:00:00 2001 From: Rico Kahler Date: Thu, 9 Nov 2023 11:33:08 -0600 Subject: [PATCH] feat(i18n): fix confirm delete dialog (#5139) * fix(i18n): move `context` to props * feat(i18n): fix spelling in comments --- .../confirmDeleteDialog/ConfirmDeleteDialogBody.tsx | 6 +++--- packages/sanity/src/desk/i18n/resources.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/sanity/src/desk/components/confirmDeleteDialog/ConfirmDeleteDialogBody.tsx b/packages/sanity/src/desk/components/confirmDeleteDialog/ConfirmDeleteDialogBody.tsx index d29a00f50db..2bac2431c4a 100644 --- a/packages/sanity/src/desk/components/confirmDeleteDialog/ConfirmDeleteDialogBody.tsx +++ b/packages/sanity/src/desk/components/confirmDeleteDialog/ConfirmDeleteDialogBody.tsx @@ -75,8 +75,8 @@ export function ConfirmDeleteDialogBody({ {documentTitle}}} - values={{context: action}} /> ) @@ -122,8 +122,8 @@ export function ConfirmDeleteDialogBody({ documentTitle}} - values={{context: action}} /> @@ -275,8 +275,8 @@ export function ConfirmDeleteDialogBody({ documentTitle}} - values={{context: action}} /> diff --git a/packages/sanity/src/desk/i18n/resources.ts b/packages/sanity/src/desk/i18n/resources.ts index c571b61dfde..f8a78f2ad60 100644 --- a/packages/sanity/src/desk/i18n/resources.ts +++ b/packages/sanity/src/desk/i18n/resources.ts @@ -280,14 +280,14 @@ const deskLocaleStrings = { /** The text when a generic operation failed */ 'panes.document-operation-results.operation-error': 'An error occurred during {{context}}', - /** The text when a publish operation succeded */ + /** The text when a publish operation succeeded */ 'panes.document-operation-results.operation-success_publish': 'The document was published', - /** The text when an unpublish operation succeded */ + /** The text when an unpublish operation succeeded */ 'panes.document-operation-results.operation-success_unpublish': 'The document was unpublished. A draft has been created from the latest published version.', - /** The text when a discard changes operation succeded */ + /** The text when a discard changes operation succeeded */ 'panes.document-operation-results.operation-success_discardChanges': 'All changes since last publish has now been discarded. The discarded draft can still be recovered from history',