Skip to content

Commit

Permalink
TimeAgoFilter. Removes transChoice calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-fls committed Jul 16, 2024
1 parent 04be7a4 commit 6a76164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Filters/TimeAgoFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ public function timeAgo($datetime)

$numberOfUnits = ceil($time / $unit);

$output = $this->translator->transChoice($transString, $numberOfUnits, ['%count%' => $numberOfUnits]);
$output = $this->translator->trans($transString, ['%count%' => $numberOfUnits]);

return $output;
}

return $this->translator->transChoice('diff.ago.second', 0, ['%count%' => 0]);
return $this->translator->trans('diff.ago.second', ['%count%' => 0]);
}

protected function getDays($date)
Expand Down

0 comments on commit 6a76164

Please sign in to comment.