spatie/laravel-personal-data-export

Notification translation : Consider date parameter in transalation string

QuentinGab opened this issue · 1 comments

Version : 2.0.2

The last line of the notification can't be translated because it is concatained with the deletion date :

return (new MailMessage)
            ->subject(Lang::get('Personal Data Download'))
            ->line(Lang::get('Please click the button below to download a zip file containg all data we got for your account.'))
            ->action(Lang::get('Download Zip File'), $downloadUrl)
            ->line(Lang::get('This file will be deleted at ' . $this->deletionDatetime->format('Y-m-d H:i:s') . '.'));

You should use parameter for the date so we can really translate the mail.

Feel free to PR the necessary changes.