Skip to content

Commit

Permalink
Time To Read Block: Fix untranslated on front end
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Apr 11, 2023
1 parent 655ae4f commit dd22814
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

0 comments on commit dd22814

Please sign in to comment.