#132 - added translations

This commit is contained in:
EwelinaLasowy
2022-05-06 08:01:09 +02:00
parent 3404bf1da8
commit 35b5b344b6
19 changed files with 69 additions and 38 deletions

View File

@@ -16,7 +16,7 @@ use Toby\Infrastructure\Slack\Elements\RemotesAttachment;
class DailySummary extends SignatureHandler
{
protected $signature = "toby dzisiaj";
protected $description = "Codzienne podsumowanie";
protected $description = "Daily summary";
public function handle(Request $request): Response
{
@@ -30,7 +30,7 @@ class DailySummary extends SignatureHandler
new BirthdaysAttachment($dailySummaryRetriever->getBirthdays($now)),
]);
return $this->respondToSlack("Podsumowanie dla dnia {$now->toDisplayString()}")
return $this->respondToSlack(__("Summary for the day :day", ["day" => $now->toDisplayString()]))
->withAttachments($attachments->all());
}
}