i18n implementation into invoice module

This commit is contained in:
Peter Papp
2021-05-07 11:32:48 +02:00
parent 070f8b4d40
commit 73672bc023
31 changed files with 431 additions and 299 deletions

View File

@@ -44,9 +44,9 @@ class InvoiceDeliveryNotification extends Notification
public function toMail($notifiable)
{
return (new MailMessage)
->subject('New invoice')
->subject(__t('in.notify.subject', ['company' => $this->user->invoiceProfile->company]))
->greeting(__t('mail_greeting'))
->line($this->user->settings->name . ' sent you an invoice.')
->line(__t('in.notify.message', ['company' => $this->user->invoiceProfile->company]))
->salutation(__t('mail_salutation'))
->attach(storage_path('app/' . invoice_path($this->invoice)), [
'as' => 'name.pdf',