Skip to content

Commit

Permalink
[1.x] A few more strings that should be translatable (#192)
Browse files Browse the repository at this point in the history
* Make labels translatable in livewire views

* Make a few strings translatable
  • Loading branch information
jimmitjoo committed Sep 14, 2020
1 parent 03136b0 commit f3a45bd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<div class="flex items-center">
@if ($token->last_used_at)
<div class="text-sm text-gray-400">
Last used {{ $token->last_used_at->diffForHumans() }}
{{ __('Last used') }} {{ $token->last_used_at->diffForHumans() }}
</div>
@endif

Expand Down
2 changes: 1 addition & 1 deletion stubs/resources/views/auth/forgot-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@csrf

<div class="block">
<x-jet-label value="Email" />
<x-jet-label value="{{ __('Email') }}" />
<x-jet-input class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus />
</div>

Expand Down
4 changes: 2 additions & 2 deletions stubs/resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
@csrf

<div>
<x-jet-label value="Email" />
<x-jet-label value="{{ __('Email') }}" />
<x-jet-input class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus />
</div>

<div class="mt-4">
<x-jet-label value="Password" />
<x-jet-label value="{{ __('Password') }}" />
<x-jet-input class="block mt-1 w-full" type="password" name="password" required autocomplete="current-password" />
</div>

Expand Down
8 changes: 4 additions & 4 deletions stubs/resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
@csrf

<div>
<x-jet-label value="Name" />
<x-jet-label value="{{ __('Name') }}" />
<x-jet-input class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" />
</div>

<div class="mt-4">
<x-jet-label value="Email" />
<x-jet-label value="{{ __('Email') }}" />
<x-jet-input class="block mt-1 w-full" type="email" name="email" :value="old('email')" required />
</div>

<div class="mt-4">
<x-jet-label value="Password" />
<x-jet-label value="{{ __('Password') }}" />
<x-jet-input class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
</div>

<div class="mt-4">
<x-jet-label value="Confirm Password" />
<x-jet-label value="{{ __('Confirm Password') }}" />
<x-jet-input class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
</div>

Expand Down
6 changes: 3 additions & 3 deletions stubs/resources/views/auth/reset-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
<input type="hidden" name="token" value="{{ $request->route('token') }}">

<div class="block">
<x-jet-label value="Email" />
<x-jet-label value="{{ __('Email') }}" />
<x-jet-input class="block mt-1 w-full" type="email" name="email" :value="old('email', $request->email)" required autofocus />
</div>

<div class="mt-4">
<x-jet-label value="Password" />
<x-jet-label value="{{ __('Password') }}" />
<x-jet-input class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
</div>

<div class="mt-4">
<x-jet-label value="Confirm Password" />
<x-jet-label value="{{ __('Confirm Password') }}" />
<x-jet-input class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
</div>

Expand Down
4 changes: 2 additions & 2 deletions stubs/resources/views/auth/two-factor-challenge.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
@csrf

<div class="mt-4" x-show="! recovery">
<x-jet-label value="Code" />
<x-jet-label value="{{ __('Code') }}" />
<x-jet-input class="block mt-1 w-full" type="text" name="code" autofocus x-ref="code" autocomplete="one-time-code" />
</div>

<div class="mt-4" x-show="recovery">
<x-jet-label value="Recovery Code" />
<x-jet-label value="{{ __('Recovery Code') }}" />
<x-jet-input class="block mt-1 w-full" type="text" name="recovery_code" x-ref="recovery_code" autocomplete="one-time-code" />
</div>

Expand Down

0 comments on commit f3a45bd

Please sign in to comment.