Skip to content

Commit

Permalink
Translate verify pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Autive committed Jan 15, 2024
1 parent 48bdf97 commit 04c69ba
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 12 deletions.
6 changes: 6 additions & 0 deletions lang/en/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

return [
'login' => 'Log in',
'verify' => 'Verify',
'verify-email' => 'Verify email',
'verify-email-helper-text' => 'You have not verified your email yet, please verify your email.',
'register' => 'Register',
Expand All @@ -10,6 +11,11 @@
'not_new' => 'Not new here?',
'password_protected' => 'Password protected',

'verify-new-success' => 'A fresh verification link has been sent to your email address.',
'verify-notice' => 'Before proceeding, please check your email for a verification link.',
'verify-if-not-received' => 'If you did not receive the email',
'verify-request-new' => 'click here to request another',

'name' => 'Name',
'email' => 'Email address',
'email_placeholder' => 'name@yourcompany.com',
Expand Down
5 changes: 5 additions & 0 deletions lang/nl/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

return [
'login' => 'Inloggen',
'verify' => 'Verifiëren',
'verify-email' => 'Verifieer email',
'verify-email-helper-text' => 'Je hebt je e-mailadres nog niet geverifieerd, verifieer je e-mailadres.',
'register' => 'Registreren',
Expand All @@ -21,6 +22,10 @@
'not_new' => 'Niet nieuw hier?',
'password_protected' => 'Beschermd met een wachtwoord',

'verify-notice' => 'Voordat je verder gaat, controleer je e-mail voor een verificatielink.',
'verify-if-not-received' => 'Als je de e-mail niet hebt ontvangen',
'verify-request-new' => 'klik dan hier om een nieuwe aan te vragen',

'name' => 'Naam',
'email' => 'E-mailadres',
'email_placeholder' => 'naam@jouwbedrijf.nl',
Expand Down
8 changes: 4 additions & 4 deletions resources/views/auth/verify-email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

@if (session('resent'))
<div class="alert-success" role="alert">
{{ __('A fresh verification link has been sent to your email address.') }}
{{ trans('auth.verify-new-success.') }}
</div>
@endif

<div class="alert-info">
{{ __('Before proceeding, please check your email for a verification link.') }}
{{ __('If you did not receive the email') }},
{{ trans('auth.verify-notice') }}
{{ trans('auth.verify-if-not-received') }},
<form method="POST" action="{{ route('verification.resend') }}">
@csrf
<button type="submit" class="border-b border-dotted border-blue-500 font-semibold">{{ __('click here to request another') }}</button>.
<button type="submit" class="border-b border-dotted border-blue-500 font-semibold">{{ trans('auth.verify-request-new') }}</button>.
</form>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/auth/verify.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<div class="card-body">
@if (session('resent'))
<div class="alert alert-success" role="alert">
{{ __('A fresh verification link has been sent to your email address.') }}
{{ trans('auth.verify-new-success.') }}
</div>
@endif

{{ __('Before proceeding, please check your email for a verification link.') }}
{{ __('If you did not receive the email') }},
{{ trans('auth.verify-notice') }}
{{ trans('auth.verify-if-not-received') }},
<form class="d-inline" method="POST" action="{{ route('verification.resend') }}">
@csrf
<button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ __('click here to request another') }}</button>.
<button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ trans('auth.verify-request-new') }}</button>.
</form>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<p class="font-medium text-white">
<span class="md:inline">{{ trans('auth.verify-email-helper-text') }}</span>
<span class="block sm:ml-2 sm:inline-block">
<a href="{{ route('verification.notice') }}" class="text-white font-bold underline"> Verify <span
<a href="{{ route('verification.notice') }}" class="text-white font-bold underline"> {{ trans('auth.verify') }} <span
aria-hidden="true">&rarr;</span></a>
</span>
</p>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/livewire/modals/items/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class="border-b border-brand-500 border-dotted text-brand-500 hover:text-brand-7
{{ $this->form }}
@else
<div class="alert-info">
{{ __('Before proceeding, please check your email for a verification link.') }}
{{ __('If you did not receive the email') }},
{{ trans('auth.verify-notice') }}
{{ trans('auth.verify-if-not-received') }},
<form method="POST" action="{{ route('verification.resend') }}">
@csrf
<button type="submit" class="border-b border-dotted border-blue-500 font-semibold">{{ __('click here to request another') }}</button>.
<button type="submit" class="border-b border-dotted border-blue-500 font-semibold">{{ trans('auth.verify-request-new') }}</button>.
</form>
</div>
@endif
Expand Down

0 comments on commit 04c69ba

Please sign in to comment.