Skip to content

Commit

Permalink
i18n: Make example label for Comments Pagination Next block translata…
Browse files Browse the repository at this point in the history
…ble (#68373)

* i18n: Make example label for Comments Pagination Next block translatable

* i18n: Update example label for Comments Pagination Next block to use `__` translation function

* i18n: Update example label for Comments Pagination Next block to 'Newer Comments'

Co-authored-by: yogeshbhutkar <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2025
1 parent 267496a commit 2d0c68e
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 Next Page"
}
},
"usesContext": [ "postId", "comments/paginationArrow" ],
"supports": {
"reusable": false,
Expand Down
6 changes: 6 additions & 0 deletions packages/block-library/src/comments-pagination-next/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { queryPaginationNext as icon } from '@wordpress/icons';

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

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

1 comment on commit 2d0c68e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 2d0c68e.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12596271875
📝 Reported issues:

Please sign in to comment.