Browse Source

Traduz tela de login

usuarios_separados
Guilherme Capanema 6 years ago
parent
commit
fb3d40dc0d
5 changed files with 17 additions and 13 deletions
  1. +1
    -1
      app/Http/Livewire/Auth/Register/Individual.php
  2. +5
    -2
      resources/lang/pt-BR/auth.php
  3. +1
    -0
      resources/lang/pt-BR/users.php
  4. +9
    -9
      resources/views/livewire/auth/login.blade.php
  5. +1
    -1
      resources/views/livewire/auth/register/individual.blade.php

+ 1
- 1
app/Http/Livewire/Auth/Register/Individual.php View File

@ -171,7 +171,7 @@ class Individual extends Component
Auth::login($user, true);
redirect(route('home'));
redirect(route('dashboard'));
}
public function render()


+ 5
- 2
resources/lang/pt-BR/auth.php View File

@ -16,6 +16,9 @@ return [
'failed' => 'Credenciais informadas não correspondem com nossos registros.',
'throttle' => 'Você realizou muitas tentativas de login. Por favor, tente novamente em :seconds segundos.',
'login' => 'Entre na sua conta',
'register' => 'Cadastrar',
'register' => 'Cadastre-se',
'remember' => 'Lembrar',
'forgot-password' => 'Esqueceu sua senha?',
'sign-in' => 'Entrar',
'sign-up' => 'Cadastrar',
];

+ 1
- 0
resources/lang/pt-BR/users.php View File

@ -36,5 +36,6 @@ return [
'email' => 'E-mail principal',
'discussion' => 'Participação no grupo de comunicação',
'contribution' => 'Contribuição financeira',
'password' => 'Senha',
],
];

+ 9
- 9
resources/views/livewire/auth/login.blade.php View File

@ -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
{{ __('auth.login') }}
</h2>
<p class="mt-2 text-sm text-center text-gray-600 leading-5 max-w">
Or
<a href="{{ route('register') }}" class="font-medium text-green-600 hover:text-green-500 focus:outline-none focus:underline transition ease-in-out duration-150">
create a new account
Ou
<a href="{{ route('register') }}" class="font-medium text-green-600 hover:text-green-500 lowercase focus:outline-none focus:underline transition ease-in-out duration-150">
{{ __('auth.register') }}
</a>
</p>
</div>
@ -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
{{ __('users.attributes.email') }}
</label>
<div class="mt-1 rounded-md shadow-sm">
@ -34,7 +34,7 @@
<div class="mt-6">
<label for="password" class="block text-sm font-medium text-gray-700 leading-5">
Password
{{ __('users.attributes.password') }}
</label>
<div class="mt-1 rounded-md shadow-sm">
@ -50,13 +50,13 @@
<div class="flex items-center">
<input wire:model.lazy="remember" id="remember" type="checkbox" class="form-checkbox w-4 h-4 text-green-600 transition duration-150 ease-in-out" />
<label for="remember" class="block ml-2 text-sm text-gray-900 leading-5">
Remember
{{ __('auth.remember') }}
</label>
</div>
<div class="text-sm leading-5">
<a href="{{ route('password.request') }}" class="font-medium text-green-600 hover:text-green-500 focus:outline-none focus:underline transition ease-in-out duration-150">
Forgot your password?
{{ __('auth.forgot-password') }}
</a>
</div>
</div>
@ -64,7 +64,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-green-600 border border-transparent rounded-md hover:bg-green-500 focus:outline-none focus:border-green-700 focus:shadow-outline-green active:bg-green-700 transition duration-150 ease-in-out">
Sign in
{{ __('auth.sign-in') }}
</button>
</span>
</div>


+ 1
- 1
resources/views/livewire/auth/register/individual.blade.php View File

@ -292,7 +292,7 @@
<div class="flex justify-center pt-12">
<span class="block w-full lg:w-auto rounded-md shadow-sm">
<button type="submit" class="flex justify-center w-full px-16 py-2 text-sm font-medium text-white bg-green-600 border border-transparent rounded-md hover:bg-green-500 focus:outline-none focus:border-green-700 focus:shadow-outline-green active:bg-green-700 transition duration-150 ease-in-out">
{{ __('auth.register') }}
{{ __('auth.sign-up') }}
</button>
</span>
</div>