From 09f8e02d6073f01f66872c4e38382f7b4131e046 Mon Sep 17 00:00:00 2001 From: Roly Gutierrez Date: Fri, 24 Nov 2023 15:23:42 -0400 Subject: [PATCH] FOUR-12550 Notification Empty when a Translation is added in a Process --- ProcessMaker/Notifications/ProcessTranslationReady.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ProcessMaker/Notifications/ProcessTranslationReady.php b/ProcessMaker/Notifications/ProcessTranslationReady.php index dd62e1c950..9611d1149f 100644 --- a/ProcessMaker/Notifications/ProcessTranslationReady.php +++ b/ProcessMaker/Notifications/ProcessTranslationReady.php @@ -47,7 +47,13 @@ public function via($notifiable) */ public function toArray($notifiable) { + $data = [ + 'humanLanguage' => $this->targetLanguage['humanLanguage'], + 'processName' => $this->process->name + ]; + $message = __('Process translation to :humanLanguage completed for process: :processName', $data); return [ + 'message' => $message, 'code' => $this->code, 'name' => __('Process translated'), 'processId' => $this->process->id ?? '',