Skip to content

Commit

Permalink
Improvements to en translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgreco13 committed Jan 24, 2022
1 parent cd6021c commit 48439b1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 9 deletions.
21 changes: 21 additions & 0 deletions resources/lang/en/default.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

return [
"login" => [
"forgot_password_link" => "Forgot password?",
],
"registration" => [
"title" => "Register",
"heading" => "Create a new account",
Expand All @@ -14,12 +17,30 @@
"submit" => [
"label" => "Send reset email",
],
"notification_success" => "Check your inbox for instructions!",
],
"verification" => [
"title" => "Verify email",
"heading" => "Email verification required",
"submit" => [
"label" => "Sign out",
],
"notification_success" => "Check your inbox for instructions!",
],
"profile" => [
"personal_info" => [
"heading" => "Personal Information",
"subheading" => "Manage your personal information.",
"submit" => [
"label" => "Update",
],
],
"password" => [
"heading" => "Password",
"subheading" => "Must be 8 characters.",
"submit" => [
"label" => "Update",
],
],
],
];
12 changes: 6 additions & 6 deletions resources/views/filament/pages/my-profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<x-filament-breezy::grid-section class="mt-8">

<x-slot name="title">
Personal Information
{{ __('filament-breezy::default.profile.personal_info.heading') }}
</x-slot>

<x-slot name="description">
Update your personal information here.
{{ __('filament-breezy::default.profile.personal_info.subheading') }}
</x-slot>

<form wire:submit.prevent="updateProfile" class="col-span-2 sm:col-span-1 mt-5 md:mt-0">
Expand All @@ -18,7 +18,7 @@
<x-slot name="footer">
<div class="text-right">
<x-filament::button type="submit">
Update
{{ __('filament-breezy::default.profile.personal_info.submit.label') }}
</x-filament::button>
</div>
</x-slot>
Expand All @@ -32,11 +32,11 @@
<x-filament-breezy::grid-section>

<x-slot name="title">
Password
{{ __('filament-breezy::default.profile.password.heading') }}
</x-slot>

<x-slot name="description">
Minimum password length: 8 characters
{{ __('filament-breezy::default.profile.password.subheading') }}
</x-slot>

<form wire:submit.prevent="updatePassword" class="space-y-4">
Expand All @@ -47,7 +47,7 @@
<x-slot name="footer">
<div class="text-right">
<x-filament::button type="submit">
Update
{{ __('filament-breezy::default.profile.password.submit.label') }}
</x-filament::button>
</div>
</x-slot>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
</x-filament::button>

<div class="text-center">
<a class="text-primary-600 hover:text-primary-700" href="{{route('password.request')}}">Forgot password?</a>
<a class="text-primary-600 hover:text-primary-700" href="{{route('password.request')}}">{{ __('filament-breezy::default.login.forgot_password_link') }}</a>
</div>
</x-filament-breezy::auth-card>
2 changes: 1 addition & 1 deletion resources/views/reset-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
{{ __('filament-breezy::default.reset_password.submit.label') }}
</x-filament::button>
@else
<span class="block text-center text-success-600 font-semibold">Check your inbox for instructions!</span>
<span class="block text-center text-success-600 font-semibold">{{ __('filament-breezy::default.reset_password.notification_success') }}</span>
@endunless
</x-filament-breezy::auth-card>
2 changes: 1 addition & 1 deletion resources/views/verify.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@unless($hasBeenSent)
If you did not receive the email, <a class="text-primary-600" href="#" wire:click="resend">click here to request another one</a>.
@else
<span class="block text-success-600 font-semibold">Check your inbox for instructions!</span>
<span class="block text-success-600 font-semibold">{{ __('filament-breezy::default.verification.notification_success') }}</span>
@endunless
</div>
</div>
Expand Down

0 comments on commit 48439b1

Please sign in to comment.