#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

@@ -18,7 +18,7 @@ use Toby\Infrastructure\Slack\Elements\RemotesAttachment;
class SendDailySummaryToSlack extends Command
{
protected $signature = "toby:slack:daily-summary {--f|force}";
protected $description = "Sent daily summary to slack";
protected $description = "Sent daily summary to Slack";
public function handle(DailySummaryRetriever $dailySummaryRetriever): void
{
@@ -37,7 +37,7 @@ class SendDailySummaryToSlack extends Command
Http::withToken($this->getSlackClientToken())
->post($this->getUrl(), [
"channel" => $this->getSlackChannel(),
"text" => "Podsumowanie dla dnia {$now->toDisplayString()}",
"text" => __("Daily summary for day :day",["day"=>$now->toDisplayString()]),
"attachments" => $attachments,
]);
}