Skip to content

Commit

Permalink
[5.6] i18n of the default notification email view (#23903)
Browse files Browse the repository at this point in the history
* i18n of the default notification email view

This uses json translations through the blade directive to allow easy
translations of mail notifications.

* fix whitespace problems
  • Loading branch information
dakira authored and taylorotwell committed Apr 25, 2018
1 parent 5fdb63b commit 0b4a5b7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/Illuminate/Notifications/resources/views/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# {{ $greeting }}
@else
@if ($level == 'error')
# Whoops!
# @lang('Whoops!')
@else
# Hello!
# @lang('Hello!')
@endif
@endif

Expand Down Expand Up @@ -45,14 +45,20 @@
@if (! empty($salutation))
{{ $salutation }}
@else
Regards,<br>{{ config('app.name') }}
@lang('Regards'),<br>{{ config('app.name') }}
@endif

{{-- Subcopy --}}
@isset($actionText)
@component('mail::subcopy')
If you’re having trouble clicking the "{{ $actionText }}" button, copy and paste the URL below
into your web browser: [{{ $actionUrl }}]({{ $actionUrl }})
@lang(
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
'into your web browser: [:actionURL](:actionURL)',
[
'actionText' => $actionText,
'actionURL' => $actionUrl
]
)
@endcomponent
@endisset
@endcomponent

0 comments on commit 0b4a5b7

Please sign in to comment.