Skip to content

Commit

Permalink
fix(structure): passing from operation context to label for success t…
Browse files Browse the repository at this point in the history
…oast (#7437)
  • Loading branch information
jordanl17 committed Aug 29, 2024
1 parent 35b6600 commit f4e414c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/sanity/src/structure/i18n/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ const structureLocaleStrings = defineLocalesResources('structure', {
'panes.document-operation-results.operation-error_unpublish':
'An error occurred while attempting to unpublish this document. This usually means that there are other documents that refers to it.',
/** The text when a generic operation succeeded (fallback, generally not shown) */
'panes.document-operation-results.operation-success':
'Successfully performed {{context}} on document',
'panes.document-operation-results.operation-success': 'Successfully performed {{op}} on document',
/** The text when copy URL operation succeeded */
'panes.document-operation-results.operation-success_copy-url': 'Document URL copied to clipboard',
/** The text when a delete operation succeeded */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const DocumentOperationResults = memo(function DocumentOperationResults()
i18nKey="panes.document-operation-results.operation-success"
t={t}
values={{
op: event.op,
title: documentTitle,
}}
components={{
Expand Down

0 comments on commit f4e414c

Please sign in to comment.