Skip to content

Commit

Permalink
i18n: make example translatable in comments-pagination-previous (Word…
Browse files Browse the repository at this point in the history
…Press#68374)

* i18n: make example translatable in comments-pagination-previous

* i18n: Update label translation in comments-pagination-previous block

* i18n: Update label for comments pagination to 'Older Comments'

Co-authored-by: yogeshbhutkar <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
3 people authored and Gulamdastgir-Momin committed Jan 23, 2025
1 parent e44e348 commit 84cfe20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
"type": "string"
}
},
"example": {
"attributes": {
"label": "Comments Previous Page"
}
},
"usesContext": [ "postId", "comments/paginationArrow" ],
"supports": {
"reusable": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { queryPaginationPrevious as icon } from '@wordpress/icons';

/**
Expand All @@ -16,6 +17,11 @@ export { metadata, name };
export const settings = {
icon,
edit,
example: {
attributes: {
label: __( 'Older Comments' ),
},
},
};

export const init = () => initBlock( { name, metadata, settings } );

0 comments on commit 84cfe20

Please sign in to comment.