#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,18 +18,18 @@ class HomeOffice extends SignatureHandler
use FindsUserBySlackId;
protected $signature = "toby zdalnie";
protected $description = "Pracuj dzisiaj zdalnie";
protected $description = "Work remotely today";
public function handle(Request $request): Response
{
$user = $this->findUserBySlackId($request->userId);
$this->createRemoteday($user, Carbon::today());
$this->createRemoteDay($user, Carbon::today());
return $this->respondToSlack(":white_check_mark: Pracujesz dzisiaj zdalnie");
return $this->respondToSlack(__(":white_check_mark: You work remotely today"));
}
protected function createRemoteday(User $user, Carbon $date): void
protected function createRemoteDay(User $user, Carbon $date): void
{
$yearPeriod = YearPeriod::findByYear($date->year);