Skip to content

Commit

Permalink
Add text domain to translation target (#499)
Browse files Browse the repository at this point in the history
* Add text domain to translation target

* Update update-panel.js
  • Loading branch information
Olein-jp authored Jan 3, 2024
1 parent 1e7348b commit e0d9fc4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/editor-sidebar/create-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' } );
}
Expand Down
10 changes: 7 additions & 3 deletions src/editor-sidebar/update-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
) }
<br />
<ExternalLink href="https://make.wordpress.org/themes/handbook/review/required/#6-plugins">
Expand All @@ -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 } )
Expand Down

0 comments on commit e0d9fc4

Please sign in to comment.