language ?? 'en'; $message = (new MailMessage()) ->greeting(trans('mail.greeting', ['name' => $notifiable->username], $locale)) ->line(trans('mail.account_created.body', ['app' => config('app.name')], $locale)) ->line(trans('mail.account_created.username', ['username' => $notifiable->username], $locale)) ->line(trans('mail.account_created.email', ['email' => $notifiable->email], $locale)); if (!is_null($this->token)) { return $message->action(trans('mail.account_created.action', locale: $locale), Filament::getPanel('app')->getResetPasswordUrl($this->token, $notifiable)); } return $message; } }