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

refactor: make auth views translatables #81

Merged
Merged
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
4 changes: 2 additions & 2 deletions stubs/resources/views/auth/forgot-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</x-slot>

<div class="mb-4 text-sm text-gray-600">
Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.
{{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }}
</div>

@if (session('status'))
Expand All @@ -26,7 +26,7 @@

<div class="flex items-center justify-end mt-4">
<x-jet-button>
Email Password Reset Link
{{ __('Email Password Reset Link') }}
</x-jet-button>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions stubs/resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
<div class="block mt-4">
<label class="flex items-center">
<input type="checkbox" class="form-checkbox">
<span class="ml-2 text-sm text-gray-600">Remember me</span>
<span class="ml-2 text-sm text-gray-600">{{ __('Remember me') }}</span>
</label>
</div>

<div class="flex items-center justify-end mt-4">
@if (Route::has('password.request'))
<a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('password.request') }}">
Forgot your password?
{{ __('Forgot your password?') }}
</a>
@endif

<x-jet-button class="ml-4">
Login
{{ __('Login') }}
</x-jet-button>
</div>
</form>
Expand Down
4 changes: 2 additions & 2 deletions stubs/resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@

<div class="flex items-center justify-end mt-4">
<a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('login') }}">
Already registered?
{{ __('Already registered?') }}
</a>

<x-jet-button class="ml-4">
Register
{{ __('Register') }}
</x-jet-button>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion stubs/resources/views/auth/reset-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<div class="flex items-center justify-end mt-4">
<x-jet-button>
Reset Password
{{ __('Reset Password') }}
</x-jet-button>
</div>
</form>
Expand Down
10 changes: 5 additions & 5 deletions stubs/resources/views/auth/two-factor-challenge.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

<div x-data="{ recovery: false }">
<div class="mb-4 text-sm text-gray-600" x-show="! recovery">
Please confirm access to your account by entering the authentication code provided by your authenticator application.
{{ __('Please confirm access to your account by entering the authentication code provided by your authenticator application.') }}
</div>

<div class="mb-4 text-sm text-gray-600" x-show="recovery">
Please confirm access to your account by entering one of your emergency recovery codes.
{{ __('Please confirm access to your account by entering one of your emergency recovery codes.') }}
</div>

<x-jet-validation-errors class="mb-4" />
Expand All @@ -35,7 +35,7 @@
recovery = true;
$nextTick(() => { $refs.recovery_code.focus() })
">
Use a recovery code
{{ __('Use a recovery code') }}
</button>

<button type="button" class="text-sm text-gray-600 hover:text-gray-900 underline cursor-pointer"
Expand All @@ -44,11 +44,11 @@
recovery = false;
$nextTick(() => { $refs.code.focus() })
">
Use an authentication code
{{ __('Use an authentication code') }}
</button>

<x-jet-button class="ml-4">
Login
{{ __('Login') }}
</x-jet-button>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions stubs/resources/views/auth/verify-email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</x-slot>

<div class="mb-4 text-sm text-gray-600">
Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another.
{{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }}
</div>

@if (session('status') == 'verification-link-sent')
Expand All @@ -20,7 +20,7 @@

<div>
<x-jet-button type="submit">
Resend Verification Email
{{ __('Resend Verification Email') }}
</x-jet-button>
</div>
</form>
Expand All @@ -29,7 +29,7 @@
@csrf

<button type="submit" class="underline text-sm text-gray-600 hover:text-gray-900">
Logout
{{ __('Logout') }}
</button>
</form>
</div>
Expand Down