Skip to content

Commit

Permalink
Time To Read Block: Fix untranslated on front end (#49704)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Apr 11, 2023
1 parent ac871a2 commit f587246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/post-time-to-read/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ function render_block_core_post_time_to_read( $attributes, $content, $block ) {
$minutes_to_read = max( 1, (int) round( wp_word_count( $content, $word_count_type ) / $average_reading_rate ) );

$minutes_to_read_string = sprintf(
/* translators: %d is the number of minutes the post will take to read. */
_n( '%d minute', '%d minutes', $minutes_to_read ),
/* translators: %s is the number of minutes the post will take to read. */
_n( '%s minute', '%s minutes', $minutes_to_read ),
$minutes_to_read
);

Expand Down

1 comment on commit f587246

@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 f587246.
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/4667355385
📝 Reported issues:

Please sign in to comment.