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
  • Loading branch information
jordanl17 committed Aug 29, 2024
1 parent 1a2ef91 commit f0e95b3
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 @@ -347,8 +347,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 a delete operation succeeded */
'panes.document-operation-results.operation-success_delete':
'The document was successfully deleted',
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 f0e95b3

Please sign in to comment.