Skip to content

Commit

Permalink
Merge pull request #252 from lara-zeus/missing-trans
Browse files Browse the repository at this point in the history
add missing translation form email
  • Loading branch information
atmonshi authored Feb 9, 2024
2 parents 554dbf8 + 5140e94 commit b96886e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion resources/lang/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,7 @@
"advanced fields settings": "خيارات القسم المتقدمة",
"Extensions": "الملحقات",
"Design": "التصميم",
"View Form": "عرض"
"View Form": "عرض",
"Thanks": "شكرا لك",
"New Submission in": "لديك سجل جديد في النموذج"
}
4 changes: 3 additions & 1 deletion resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,7 @@
"advanced fields settings": "advanced fields settings",
"Extensions": "Extensions",
"Design": "Design",
"View Form": "View Form"
"View Form": "View Form",
"Thanks": "Thanks",
"New Submission in": "New Submission in"
}
2 changes: 1 addition & 1 deletion resources/views/emails/form-submission.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
{{ __('view the entry') }}
</x-mail::button>

Thanks,<br>
{{ __('Thanks') }},<br>
{{ config('app.name') }}
</x-mail::message>
2 changes: 1 addition & 1 deletion src/Mail/FormSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(Form $form, Response $response)
public function envelope(): Envelope
{
return new Envelope(
subject: 'New Form Submission',
subject: __('New Submission in') . ' ' . $this->form->name,
);
}

Expand Down

0 comments on commit b96886e

Please sign in to comment.