close #422 Added: Notification language text

This commit is contained in:
cuneytsenturk 2018-07-18 17:54:50 +03:00
parent 23132d848c
commit 2a1252e6fc
2 changed files with 15 additions and 5 deletions

View File

@ -0,0 +1,11 @@
<?php
return [
'whoops' => 'Whoops!',
'hello' => 'Hello!',
'salutation' => 'Regards,<br> :company_name',
'subcopy' => 'If youre having trouble clicking the ":text" button, copy and paste the URL below
into your web browser: [:url](:url)',
];

View File

@ -4,9 +4,9 @@
# {{ $greeting }}
@else
@if ($level == 'error')
# Whoops!
# {{ trans('notifications.whoops') }}
@else
# Hello!
# {{ trans('notifications.hello') }}
@endif
@endif
@ -45,14 +45,13 @@
@if (! empty($salutation))
{{ $salutation }}
@else
Regards,<br>{{ setting('general.company_name', config('app.name')) }}
{!! trans('notifications.salutation', ['company_name' => setting('general.company_name', config('app.name'))]) !!}
@endif
<!-- Subcopy -->
@isset($actionText)
@component('mail::subcopy')
If youre having trouble clicking the "{{ $actionText }}" button, copy and paste the URL below
into your web browser: [{{ $actionUrl }}]({{ $actionUrl }})
{!! trans('notifications.subcopy', ['text' => $actionText, 'url' => $actionUrl]) !!}
@endcomponent
@endisset
@endcomponent