Skip to content

Commit 6853e47

Browse files
askdkctaylorotwell
andauthored
Add missing translation methods to Livewire stack (#24)
* Add missing translations * Update appearance.blade.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 5e4912d commit 6853e47

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

resources/views/components/layouts/app/header.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<flux:navbar class="-mb-px max-lg:hidden">
1515
<flux:navbar.item icon="layout-grid" href="{{ route('dashboard') }}" :current="request()->routeIs('dashboard')" wire:navigate>
16-
Dashboard
16+
{{ __('Dashboard') }}
1717
</flux:navbar.item>
1818
</flux:navbar>
1919

@@ -73,7 +73,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
7373
<flux:menu.separator />
7474

7575
<flux:menu.radio.group>
76-
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>Settings</flux:menu.item>
76+
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
7777
</flux:menu.radio.group>
7878

7979
<flux:menu.separator />
@@ -99,7 +99,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
9999
<flux:navlist variant="outline">
100100
<flux:navlist.group heading="Platform">
101101
<flux:navlist.item icon="layout-grid" href="{{ route('dashboard') }}" :current="request()->routeIs('dashboard')" wire:navigate>
102-
Dashboard
102+
{{ __('Dashboard') }}
103103
</flux:navlist.item>
104104
</flux:navlist.group>
105105
</flux:navlist>
@@ -108,11 +108,11 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
108108

109109
<flux:navlist variant="outline">
110110
<flux:navlist.item icon="folder-git-2" href="https://github.com/laravel/livewire-starter-kit" target="_blank">
111-
Repository
111+
{{ __('Repository') }}
112112
</flux:navlist.item>
113113

114114
<flux:navlist.item icon="book-open-text" href="https://laravel.com/docs/starter-kits" target="_blank">
115-
Documentation
115+
{{ __('Documentation') }}
116116
</flux:navlist.item>
117117
</flux:navlist>
118118
</flux:sidebar>

resources/views/components/layouts/app/sidebar.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313

1414
<flux:navlist variant="outline">
1515
<flux:navlist.group heading="Platform" class="grid">
16-
<flux:navlist.item icon="home" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>Dashboard</flux:navlist.item>
16+
<flux:navlist.item icon="home" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>{{ __('Dashboard') }}</flux:navlist.item>
1717
</flux:navlist.group>
1818
</flux:navlist>
1919

2020
<flux:spacer />
2121

2222
<flux:navlist variant="outline">
2323
<flux:navlist.item icon="folder-git-2" href="https://github.com/laravel/livewire-starter-kit" target="_blank">
24-
Repository
24+
{{ __('Repository') }}
2525
</flux:navlist.item>
2626

2727
<flux:navlist.item icon="book-open-text" href="https://laravel.com/docs/starter-kits" target="_blank">
28-
Documentation
28+
{{ __('Documentation') }}
2929
</flux:navlist.item>
3030
</flux:navlist>
3131

@@ -60,7 +60,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
6060
<flux:menu.separator />
6161

6262
<flux:menu.radio.group>
63-
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>Settings</flux:menu.item>
63+
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
6464
</flux:menu.radio.group>
6565

6666
<flux:menu.separator />

resources/views/components/settings/layout.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div class="flex items-start max-md:flex-col">
22
<div class="mr-10 w-full pb-4 md:w-[220px]">
33
<flux:navlist>
4-
<flux:navlist.item href="{{ route('settings.profile') }}" wire:navigate>Profile</flux:navlist.item>
5-
<flux:navlist.item href="{{ route('settings.password') }}" wire:navigate>Password</flux:navlist.item>
6-
<flux:navlist.item href="{{ route('settings.appearance') }}" wire:navigate>Appearance</flux:navlist.item>
4+
<flux:navlist.item href="{{ route('settings.profile') }}" wire:navigate>{{ __('Profile') }}</flux:navlist.item>
5+
<flux:navlist.item href="{{ route('settings.password') }}" wire:navigate>{{ __('Password') }}</flux:navlist.item>
6+
<flux:navlist.item href="{{ route('settings.appearance') }}" wire:navigate>{{ __('Appearance') }}</flux:navlist.item>
77
</flux:navlist>
88
</div>
99

resources/views/livewire/settings/appearance.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
<div class="flex flex-col items-start">
1010
@include('partials.settings-heading')
1111

12-
<x-settings.layout heading="Appearance" subheading="Update your account's appearance settings">
12+
<x-settings.layout heading="{{ __('Appearance') }}" subheading="{{ __('Update the appearance settings for your account') }}">
1313
<flux:radio.group x-data variant="segmented" x-model="$flux.appearance">
14-
<flux:radio value="light" icon="sun">Light</flux:radio>
15-
<flux:radio value="dark" icon="moon">Dark</flux:radio>
16-
<flux:radio value="system" icon="computer-desktop">System</flux:radio>
14+
<flux:radio value="light" icon="sun">{{ __('Light') }}</flux:radio>
15+
<flux:radio value="dark" icon="moon">{{ __('Dark') }}</flux:radio>
16+
<flux:radio value="system" icon="computer-desktop">{{ __('System') }}</flux:radio>
1717
</flux:radio.group>
1818
</x-settings.layout>
1919
</div>

resources/views/livewire/settings/password.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function updatePassword(): void
4040
<section class="w-full">
4141
@include('partials.settings-heading')
4242

43-
<x-settings.layout heading="Update password" subheading="Ensure your account is using a long, random password to stay secure">
43+
<x-settings.layout heading="{{ __('Update password') }}" subheading="{{ __('Ensure your account is using a long, random password to stay secure') }}">
4444
<form wire:submit="updatePassword" class="mt-6 space-y-6">
4545
<flux:input
4646
wire:model="current_password"

resources/views/livewire/settings/profile.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function resendVerificationNotification(): void
7272
<section class="w-full">
7373
@include('partials.settings-heading')
7474

75-
<x-settings.layout heading="Profile" subheading="Update your name and email address">
75+
<x-settings.layout heading="{{ __('Profile') }}" subheading="{{ __('Update your name and email address') }}">
7676
<form wire:submit="updateProfileInformation" class="my-6 w-full space-y-6">
7777
<flux:input wire:model="name" label="{{ __('Name') }}" type="text" name="name" required autofocus autocomplete="name" />
7878

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="relative mb-6 w-full">
22
<flux:heading size="xl" level="1">Settings</flux:heading>
3-
<flux:subheading size="lg" class="mb-6">Manage your profile and account settings</flux:subheading>
3+
<flux:subheading size="lg" class="mb-6">{{ __('Manage your profile and account settings') }}</flux:subheading>
44
<flux:separator variant="subtle" />
55
</div>

0 commit comments

Comments
 (0)