Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable translations by default #14

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/auth/resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@extends('layouts.auth')
@section('title', 'Sign in to your account')
@section('title', __('Sign in to your account'))

@section('content')
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@extends('layouts.auth')
@section('title', 'Confirm your password')
@section('title', __('Confirm your password'))

@section('content')
<div>
Expand Down
2 changes: 1 addition & 1 deletion stubs/auth/resources/views/auth/passwords/email.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@extends('layouts.auth')
@section('title', 'Reset password')
@section('title', __('Reset password'))

@section('content')
<div>
Expand Down
2 changes: 1 addition & 1 deletion stubs/auth/resources/views/auth/passwords/reset.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@extends('layouts.auth')
@section('title', 'Reset password')
@section('title', __('Reset password'))

@section('content')
<div>
Expand Down
2 changes: 1 addition & 1 deletion stubs/auth/resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@extends('layouts.auth')
@section('title', 'Create a new account')
@section('title', __('Create a new account'))

@section('content')
<div>
Expand Down
2 changes: 1 addition & 1 deletion stubs/auth/resources/views/auth/verify.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@extends('layouts.auth')
@section('title', 'Verify your email address')
@section('title', __('Verify your email address'))

@section('content')
<div>
Expand Down
16 changes: 8 additions & 8 deletions stubs/auth/resources/views/livewire/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
</a>

<h2 class="mt-6 text-3xl font-extrabold text-center text-gray-900 leading-9">
Sign in to your account
{{ __('Sign in to your account') }}
</h2>
<p class="mt-2 text-sm text-center text-gray-600 leading-5 max-w">
Or
{{ __('Or') }}
<a href="{{ route('register') }}" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">
create a new account
{{ __('create a new account') }}
</a>
</p>
</div>
Expand All @@ -20,7 +20,7 @@
<form wire:submit.prevent="authenticate">
<div>
<label for="email" class="block text-sm font-medium text-gray-700 leading-5">
Email address
{{ __('Email address') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -34,7 +34,7 @@

<div class="mt-6">
<label for="password" class="block text-sm font-medium text-gray-700 leading-5">
Password
{{ __('Password') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -50,21 +50,21 @@
<div class="flex items-center">
<input wire:model.lazy="remember" id="remember" type="checkbox" class="form-checkbox w-4 h-4 text-indigo-600 transition duration-150 ease-in-out" />
<label for="remember" class="block ml-2 text-sm text-gray-900 leading-5">
Remember
{{ __('Remember') }}
</label>
</div>

<div class="text-sm leading-5">
<a href="{{ route('password.request') }}" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">
Forgot your password?
{{ __('Forgot your password?') }}
</a>
</div>
</div>

<div class="mt-6">
<span class="block w-full rounded-md shadow-sm">
<button type="submit" class="flex justify-center w-full px-4 py-2 text-sm font-medium text-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus:shadow-outline-indigo active:bg-indigo-700 transition duration-150 ease-in-out">
Sign in
{{ __('Sign in') }}
</button>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
</a>

<h2 class="mt-6 text-3xl font-extrabold text-center text-gray-900 leading-9">
Confirm your password
{{ __('Confirm your password') }}
</h2>
<p class="mt-2 text-sm text-center text-gray-600 leading-5 max-w">
Please confirm your password before continuing
{{ __('Please confirm your password before continuing') }}
</p>
</div>

Expand All @@ -17,7 +17,7 @@
<form wire:submit.prevent="confirm">
<div>
<label for="password" class="block text-sm font-medium text-gray-700 leading-5">
Password
{{ __('Password') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -32,15 +32,15 @@
<div class="flex items-center justify-end mt-6">
<div class="text-sm leading-5">
<a href="{{ route('password.request') }}" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">
Forgot your password?
{{ __('Forgot your password?') }}
</a>
</div>
</div>

<div class="mt-6">
<span class="block w-full rounded-md shadow-sm">
<button type="submit" class="flex justify-center w-full px-4 py-2 text-sm font-medium text-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus:shadow-outline-indigo active:bg-indigo-700 transition duration-150 ease-in-out">
Confirm password
{{ __('Confirm password') }}
</button>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</a>

<h2 class="mt-6 text-3xl font-extrabold text-center text-gray-900 leading-9">
Reset password
{{ __('Reset password') }}
</h2>
</div>

Expand All @@ -31,7 +31,7 @@
<form wire:submit.prevent="sendResetPasswordLink">
<div>
<label for="email" class="block text-sm font-medium text-gray-700 leading-5">
Email address
{{ __('Email address') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -46,7 +46,7 @@
<div class="mt-6">
<span class="block w-full rounded-md shadow-sm">
<button type="submit" class="flex justify-center w-full px-4 py-2 text-sm font-medium text-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus:shadow-outline-indigo active:bg-indigo-700 transition duration-150 ease-in-out">
Send password reset link
{{ __('Send password reset link') }}
</button>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</a>

<h2 class="mt-6 text-3xl font-extrabold text-center text-gray-900 leading-9">
Reset password
{{ __('Reset password') }}
</h2>
</div>

Expand All @@ -16,7 +16,7 @@

<div>
<label for="email" class="block text-sm font-medium text-gray-700 leading-5">
Email address
{{ __('Email address') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -30,7 +30,7 @@

<div class="mt-6">
<label for="password" class="block text-sm font-medium text-gray-700 leading-5">
Password
{{ __('Password') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -44,7 +44,7 @@

<div class="mt-6">
<label for="password_confirmation" class="block text-sm font-medium text-gray-700 leading-5">
Confirm Password
{{ __('Confirm Password') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -55,7 +55,7 @@
<div class="mt-6">
<span class="block w-full rounded-md shadow-sm">
<button type="submit" class="flex justify-center w-full px-4 py-2 text-sm font-medium text-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus:shadow-outline-indigo active:bg-indigo-700 transition duration-150 ease-in-out">
Reset password
{{ __('Reset password') }}
</button>
</span>
</div>
Expand Down
16 changes: 8 additions & 8 deletions stubs/auth/resources/views/livewire/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
</a>

<h2 class="mt-6 text-3xl font-extrabold text-center text-gray-900 leading-9">
Create a new account
{{ __('Create a new account') }}
</h2>

<p class="mt-2 text-sm text-center text-gray-600 leading-5 max-w">
Or
{{ __('Or') }}
<a href="{{ route('login') }}" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">
sign in to your account
{{ __('sign in to your account') }}
</a>
</p>
</div>
Expand All @@ -21,7 +21,7 @@
<form wire:submit.prevent="register">
<div>
<label for="name" class="block text-sm font-medium text-gray-700 leading-5">
Name
{{ __('Name') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -35,7 +35,7 @@

<div class="mt-6">
<label for="email" class="block text-sm font-medium text-gray-700 leading-5">
Email address
{{ __('Email address') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -49,7 +49,7 @@

<div class="mt-6">
<label for="password" class="block text-sm font-medium text-gray-700 leading-5">
Password
{{ __('Password') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -63,7 +63,7 @@

<div class="mt-6">
<label for="password_confirmation" class="block text-sm font-medium text-gray-700 leading-5">
Confirm Password
{{ __('Confirm Password') }}
</label>

<div class="mt-1 rounded-md shadow-sm">
Expand All @@ -74,7 +74,7 @@
<div class="mt-6">
<span class="block w-full rounded-md shadow-sm">
<button type="submit" class="flex justify-center w-full px-4 py-2 text-sm font-medium text-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus:shadow-outline-indigo active:bg-indigo-700 transition duration-150 ease-in-out">
Register
{{ __('Register') }}
</button>
</span>
</div>
Expand Down
10 changes: 5 additions & 5 deletions stubs/auth/resources/views/livewire/auth/verify.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
</a>

<h2 class="mt-6 text-3xl font-extrabold text-center text-gray-900 leading-9">
Verify your email address
{{ __('Verify your email address') }}
</h2>

<p class="mt-2 text-sm text-center text-gray-600 leading-5 max-w">
Or
<a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">
sign out
{{ __('sign out') }}
</a>

<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
Expand All @@ -28,15 +28,15 @@
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path>
</svg>

<p>A fresh verification link has been sent to your email address.</p>
<p>{{ __('A fresh verification link has been sent to your email address.') }}</p>
</div>
@endif

<div class="text-sm text-gray-700">
<p>Before proceeding, please check your email for a verification link.</p>
<p>{{ __('Before proceeding, please check your email for a verification link.') }}</p>

<p class="mt-3">
If you did not receive the email, <a wire:click="resend" class="text-indigo-700 cursor-pointer hover:text-indigo-600 focus:outline-none focus:underline transition ease-in-out duration-150">click here to request another</a>.
{{ __('If you did not receive the email,') }} <a wire:click="resend" class="text-indigo-700 cursor-pointer hover:text-indigo-600 focus:outline-none focus:underline transition ease-in-out duration-150">{{ __('click here to request another') }}</a>.
</p>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions stubs/default/resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
onclick="event.preventDefault(); document.getElementById('logout-form').submit();"
class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150"
>
Log out
{{ __('Sign out') }}
</a>

<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
@else
<a href="{{ route('login') }}" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">Log in</a>
<a href="{{ route('login') }}" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">{{ __('Sign in') }}</a>

@if (Route::has('register'))
<a href="{{ route('register') }}" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">Register</a>
<a href="{{ route('register') }}" class="font-medium text-indigo-600 hover:text-indigo-500 focus:outline-none focus:underline transition ease-in-out duration-150">{{ __('Register') }}</a>
@endif
@endauth
</div>
Expand Down