From e0d9fc4bee21dd5d192e521d15498412e9514dbf Mon Sep 17 00:00:00 2001 From: Koji Kuno Date: Wed, 3 Jan 2024 18:43:03 +0900 Subject: [PATCH] Add text domain to translation target (#499) * Add text domain to translation target * Update update-panel.js --- src/editor-sidebar/create-panel.js | 3 ++- src/editor-sidebar/update-panel.js | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/editor-sidebar/create-panel.js b/src/editor-sidebar/create-panel.js index df64c898..e6600f70 100644 --- a/src/editor-sidebar/create-panel.js +++ b/src/editor-sidebar/create-panel.js @@ -72,7 +72,8 @@ export const CreateThemePanel = () => { error.message && error.code !== 'unknown_error' ? error.message : __( - 'An error occurred while attempting to export the theme.' + 'An error occurred while attempting to export the theme.', + 'create-block-theme' ); createErrorNotice( errorMessage, { type: 'snackbar' } ); } diff --git a/src/editor-sidebar/update-panel.js b/src/editor-sidebar/update-panel.js index d66a9bb5..c0420194 100644 --- a/src/editor-sidebar/update-panel.js +++ b/src/editor-sidebar/update-panel.js @@ -200,7 +200,8 @@ export const UpdateThemePanel = () => { help={ <> { __( - 'List the recommended plugins for this theme. e.g. contact forms, social media. Plugins must be from the WordPress.org plugin repository.' + 'List the recommended plugins for this theme. e.g. contact forms, social media. Plugins must be from the WordPress.org plugin repository.', + 'create-block-theme' ) }
@@ -209,9 +210,12 @@ export const UpdateThemePanel = () => { } // eslint-disable-next-line @wordpress/i18n-no-collapsible-whitespace - placeholder={ __( `Plugin Name + placeholder={ __( + `Plugin Name https://wordpress.org/plugins/plugin-name/ -Plugin Description` ) } +Plugin Description`, + 'create-block-theme' + ) } value={ theme.recommended_plugins } onChange={ ( value ) => setTheme( { ...theme, recommended_plugins: value } )