From 2ad0051d2c936300a7c971f9b7d662af1f1a3b48 Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:37:04 +1000 Subject: [PATCH] Change success notices to reflect duplication https://github.com/WordPress/gutenberg/pull/53214#issuecomment-1664245500 --- .../src/components/page-patterns/duplicate-menu-item.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/edit-site/src/components/page-patterns/duplicate-menu-item.js b/packages/edit-site/src/components/page-patterns/duplicate-menu-item.js index 185ff089c2bab..766e4414a5dfc 100644 --- a/packages/edit-site/src/components/page-patterns/duplicate-menu-item.js +++ b/packages/edit-site/src/components/page-patterns/duplicate-menu-item.js @@ -78,8 +78,8 @@ export default function DuplicateMenuItem( { createSuccessNotice( sprintf( // translators: %s: The new template part's title e.g. 'Call to action (copy)'. - __( '"%s" created.' ), - title + __( 'Duplicated "%s"' ), + item.title ), { type: 'snackbar', @@ -137,8 +137,8 @@ export default function DuplicateMenuItem( { createSuccessNotice( sprintf( // translators: %s: The new pattern's title e.g. 'Call to action (copy)'. - __( '"%s" added to my patterns.' ), - title + __( 'Duplicated "%s"' ), + item.title ), { type: 'snackbar',