diff --git a/read_time.module b/read_time.module
index 4d768f8..01fe4b0 100644
--- a/read_time.module
+++ b/read_time.module
@@ -165,7 +165,7 @@ function read_time_node_view(array &$build, EntityInterface $entity, EntityViewD
 
     $build['read_time'] = [
       '#type' => 'markup',
-      '#markup' => t($display, [':read_time' => $read_time]),
+      '#markup' => t((string) $display, [':read_time' => $read_time]),
     ];
   }
 }
