Skip to content

Commit e700cd6

Browse files
authored
Added translation support for missing texts (#52)
1 parent 6b79d8f commit e700cd6

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020
<flux:spacer />
2121

2222
<flux:navbar class="mr-1.5 space-x-0.5 py-0!">
23-
<flux:tooltip content="Search" position="bottom">
24-
<flux:navbar.item class="!h-10 [&>div>svg]:size-5" icon="magnifying-glass" href="#" label="Search" />
23+
<flux:tooltip :content="__('Search')" position="bottom">
24+
<flux:navbar.item class="!h-10 [&>div>svg]:size-5" icon="magnifying-glass" href="#" :label="__('Search')" />
2525
</flux:tooltip>
26-
<flux:tooltip content="Repository" position="bottom">
26+
<flux:tooltip :content="__('Repository')" position="bottom">
2727
<flux:navbar.item
2828
class="h-10 max-lg:hidden [&>div>svg]:size-5"
2929
icon="folder-git-2"
3030
href="https://github.com/laravel/livewire-starter-kit"
3131
target="_blank"
32-
label="Repository"
32+
:label="__('Repository')"
3333
/>
3434
</flux:tooltip>
35-
<flux:tooltip content="Documentation" position="bottom">
35+
<flux:tooltip :content="__('Documentation')" position="bottom">
3636
<flux:navbar.item
3737
class="h-10 max-lg:hidden [&>div>svg]:size-5"
3838
icon="book-open-text"
@@ -97,7 +97,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
9797
</a>
9898

9999
<flux:navlist variant="outline">
100-
<flux:navlist.group heading="Platform">
100+
<flux:navlist.group :heading="__('Platform')">
101101
<flux:navlist.item icon="layout-grid" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>
102102
{{ __('Dashboard') }}
103103
</flux:navlist.item>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</a>
1313

1414
<flux:navlist variant="outline">
15-
<flux:navlist.group heading="Platform" class="grid">
15+
<flux:navlist.group :heading="__('Platform')" class="grid">
1616
<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>
@@ -110,7 +110,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
110110
<flux:menu.separator />
111111

112112
<flux:menu.radio.group>
113-
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>Settings</flux:menu.item>
113+
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
114114
</flux:menu.radio.group>
115115

116116
<flux:menu.separator />

resources/views/livewire/auth/confirm-password.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function confirmPassword(): void
4949
type="password"
5050
required
5151
autocomplete="new-password"
52-
placeholder="Password"
52+
:placeholder="__('Password')"
5353
/>
5454

5555
<flux:button variant="primary" type="submit" class="w-full">{{ __('Confirm') }}</flux:button>

resources/views/livewire/auth/login.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function throttleKey(): string
9999
type="password"
100100
required
101101
autocomplete="current-password"
102-
placeholder="Password"
102+
:placeholder="__('Password')"
103103
/>
104104

105105
@if (Route::has('password.request'))

resources/views/livewire/auth/register.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function register(): void
5050
required
5151
autofocus
5252
autocomplete="name"
53-
placeholder="Full name"
53+
:placeholder="__('Full name')"
5454
/>
5555

5656
<!-- Email Address -->
@@ -70,7 +70,7 @@ public function register(): void
7070
type="password"
7171
required
7272
autocomplete="new-password"
73-
placeholder="Password"
73+
:placeholder="__('Password')"
7474
/>
7575

7676
<!-- Confirm Password -->
@@ -80,7 +80,7 @@ public function register(): void
8080
type="password"
8181
required
8282
autocomplete="new-password"
83-
placeholder="Confirm password"
83+
:placeholder="__('Confirm password')"
8484
/>
8585

8686
<div class="flex items-center justify-end">

resources/views/livewire/auth/reset-password.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function ($user) {
9191
type="password"
9292
required
9393
autocomplete="new-password"
94-
placeholder="Password"
94+
:placeholder="__('Password')"
9595
/>
9696

9797
<!-- Confirm Password -->
@@ -101,7 +101,7 @@ function ($user) {
101101
type="password"
102102
required
103103
autocomplete="new-password"
104-
placeholder="Confirm password"
104+
:placeholder="__('Confirm password')"
105105
/>
106106

107107
<div class="flex items-center justify-end">
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">
2-
<flux:heading size="xl" level="1">Settings</flux:heading>
2+
<flux:heading size="xl" level="1">{{ __('Settings') }}</flux:heading>
33
<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)