Skip to content

Commit d3ce65a

Browse files
authored
Clarify i18n context for PostTemplateActions's "New" label (#36679)
1 parent 6ba7c24 commit d3ce65a

File tree

1 file changed

+5
-2
lines changed
  • packages/edit-post/src/components/sidebar/template

1 file changed

+5
-2
lines changed

packages/edit-post/src/components/sidebar/template/actions.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { kebabCase } from 'lodash';
66
/**
77
* WordPress dependencies
88
*/
9-
import { __ } from '@wordpress/i18n';
9+
import { __, _x } from '@wordpress/i18n';
1010
import {
1111
Button,
1212
Modal,
@@ -129,7 +129,10 @@ function PostTemplateActions() {
129129
</Button>
130130
) }
131131
<Button variant="link" onClick={ () => setIsModalOpen( true ) }>
132-
{ __( 'New' ) }
132+
{
133+
/* translators: button to create a new template */
134+
_x( 'New', 'action' )
135+
}
133136
</Button>
134137
</div>
135138
{ isModalOpen && (

0 commit comments

Comments
 (0)