diff --git a/Benchmarks/CoreModuleAggregator.php b/Benchmarks/CoreModuleAggregator.php index 54a08ef..a4489fb 100644 --- a/Benchmarks/CoreModuleAggregator.php +++ b/Benchmarks/CoreModuleAggregator.php @@ -29,6 +29,19 @@ public function getCore(): ?Core return $this->core; } + private bool $translated = false; + + public function getName(): string + { + if ($this->translated) { + return $this->name; + } + $this->translated = true; + return $this->name = $this + ->getCore() + ?->translate('Event', context: 'benchmark')??$this->name; + } + public function accepted(RecordInterface $record): bool { if ($record->getGroup()->getName() === $this->groupName) {