Skip to content

Commit eee2df6

Browse files
authored
Make labels translatable in livewire views (#177)
1 parent 3b0e108 commit eee2df6

6 files changed

+13
-13
lines changed

stubs/livewire/resources/views/api/api-token-manager.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
<x-slot name="form">
1313
<!-- Token Name -->
1414
<div class="col-span-6 sm:col-span-4">
15-
<x-jet-label for="name" value="Token Name" />
15+
<x-jet-label for="name" value="{{ __('Token Name') }}" />
1616
<x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model.defer="createApiTokenForm.name" autofocus />
1717
<x-jet-input-error for="name" class="mt-2" />
1818
</div>
1919

2020
<!-- Token Permissions -->
2121
@if (Laravel\Jetstream\Jetstream::hasPermissions())
2222
<div class="col-span-6">
23-
<x-jet-label for="permissions" value="Permissions" />
23+
<x-jet-label for="permissions" value="{{ __('Permissions') }}" />
2424

2525
<div class="mt-2 grid grid-cols-1 md:grid-cols-2 gap-4">
2626
@foreach (Laravel\Jetstream\Jetstream::$permissions as $permission)

stubs/livewire/resources/views/profile/update-password-form.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99

1010
<x-slot name="form">
1111
<div class="col-span-6 sm:col-span-4">
12-
<x-jet-label for="current_password" value="Current Password" />
12+
<x-jet-label for="current_password" value="{{ __('Current Password') }}" />
1313
<x-jet-input id="current_password" type="password" class="mt-1 block w-full" wire:model.defer="state.current_password" autocomplete="current-password" />
1414
<x-jet-input-error for="current_password" class="mt-2" />
1515
</div>
1616

1717
<div class="col-span-6 sm:col-span-4">
18-
<x-jet-label for="password" value="New Password" />
18+
<x-jet-label for="password" value="{{ __('New Password') }}" />
1919
<x-jet-input id="password" type="password" class="mt-1 block w-full" wire:model.defer="state.password" autocomplete="new-password" />
2020
<x-jet-input-error for="password" class="mt-2" />
2121
</div>
2222

2323
<div class="col-span-6 sm:col-span-4">
24-
<x-jet-label for="password_confirmation" value="Confirm Password" />
24+
<x-jet-label for="password_confirmation" value="{{ __('Confirm Password') }}" />
2525
<x-jet-input id="password_confirmation" type="password" class="mt-1 block w-full" wire:model.defer="state.password_confirmation" autocomplete="new-password" />
2626
<x-jet-input-error for="password_confirmation" class="mt-2" />
2727
</div>

stubs/livewire/resources/views/profile/update-profile-information-form.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
reader.readAsDataURL($refs.photo.files[0]);
2525
" />
2626

27-
<x-jet-label for="photo" value="Photo" />
27+
<x-jet-label for="photo" value="{{ __('Photo') }}" />
2828

2929
<!-- Current Profile Photo -->
3030
<div class="mt-2" x-show="! photoPreview">
@@ -48,7 +48,7 @@
4848

4949
<!-- Name -->
5050
<div class="col-span-6 sm:col-span-4">
51-
<x-jet-label for="name" value="Name" />
51+
<x-jet-label for="name" value="{{ __('Name') }}" />
5252
<x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model.defer="state.name" autocomplete="name" />
5353
<x-jet-input-error for="name" class="mt-2" />
5454
</div>

stubs/livewire/resources/views/teams/create-team-form.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<x-slot name="form">
1111
<div class="col-span-6">
12-
<x-jet-label value="Team Owner" />
12+
<x-jet-label value="{{ __('Team Owner') }}" />
1313

1414
<div class="flex items-center mt-2">
1515
<img class="w-12 h-12 rounded-full object-cover" src="{{ $this->user->profile_photo_url }}" alt="{{ $this->user->name }}">
@@ -22,7 +22,7 @@
2222
</div>
2323

2424
<div class="col-span-6 sm:col-span-4">
25-
<x-jet-label for="name" value="Team Name" />
25+
<x-jet-label for="name" value="{{ __('Team Name') }}" />
2626
<x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model.defer="state.name" autofocus />
2727
<x-jet-input-error for="name" class="mt-2" />
2828
</div>

stubs/livewire/resources/views/teams/team-member-manager.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222

2323
<!-- Member Email -->
2424
<div class="col-span-6 sm:col-span-4">
25-
<x-jet-label for="email" value="Email" />
25+
<x-jet-label for="email" value="{{ __('Email') }}" />
2626
<x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model.defer="addTeamMemberForm.email" />
2727
<x-jet-input-error for="email" class="mt-2" />
2828
</div>
2929

3030
<!-- Role -->
3131
@if (count($this->roles) > 0)
3232
<div class="col-span-6 lg:col-span-4">
33-
<x-jet-label for="role" value="Role" />
33+
<x-jet-label for="role" value="{{ __('Role') }}" />
3434
<x-jet-input-error for="role" class="mt-2" />
3535

3636
<div class="mt-1 border border-gray-200 rounded-lg cursor-pointer">

stubs/livewire/resources/views/teams/update-team-name-form.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<x-slot name="form">
1111
<!-- Team Owner Information -->
1212
<div class="col-span-6">
13-
<x-jet-label value="Team Owner" />
13+
<x-jet-label value="{{ __('Team Owner') }}" />
1414

1515
<div class="flex items-center mt-2">
1616
<img class="w-12 h-12 rounded-full object-cover" src="{{ $team->owner->profile_photo_url }}" alt="{{ $team->owner->name }}">
@@ -24,7 +24,7 @@
2424

2525
<!-- Team Name -->
2626
<div class="col-span-6 sm:col-span-4">
27-
<x-jet-label for="name" value="Team Name" />
27+
<x-jet-label for="name" value="{{ __('Team Name') }}" />
2828

2929
<x-jet-input id="name"
3030
type="text"

0 commit comments

Comments
 (0)