Skip to content

Commit f2fb4e5

Browse files
feat(i18n): translate search button text
- Add 'search_button' translation key for EN and NL - Update header.blade.php to use trans('spotlight.search_button') - Both desktop and mobile search buttons now use translations
1 parent 6fa109f commit f2fb4e5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lang/en/spotlight.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'search' => 'Search',
5+
'search_button' => 'Search',
56
'create-item' => [
67
'name' => 'Create item',
78
'description' => 'Create an item',

lang/nl/spotlight.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'search' => 'Zoeken',
5+
'search_button' => 'Zoeken',
56
'create-item' => [
67
'name' => 'Item aanmaken',
78
'description' => 'Maak een item aan',

resources/views/livewire/header.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class="flex w-full items-center gap-2 px-4 py-2 text-sm text-gray-700 dark:text-
7373
class="inline-flex items-center gap-2 !px-3 !py-1.5 rounded-lg text-white hover:text-white hover:bg-white/10 focus:ring-white/20 transition focus:outline-none focus:ring-2"
7474
>
7575
<x-heroicon-o-magnifying-glass class="w-5 h-5" />
76-
<span>Search</span>
76+
<span>{{ trans('spotlight.search_button') }}</span>
7777
<kbd class="hidden sm:inline-block ml-1 rounded border border-white/20 px-2 py-0.5 text-xs font-semibold">
7878
⌘K
7979
</kbd>
@@ -192,7 +192,7 @@ class="text-white flex items-center justify-center w-10 h-10 -mr-2 transition ro
192192
class="flex items-center gap-2 w-full p-2 transition rounded-lg focus:outline-none hover:bg-brand-500-400 text-left"
193193
>
194194
<x-heroicon-o-magnifying-glass class="w-5 h-5" />
195-
<span>Search</span>
195+
<span>{{ trans('spotlight.search_button') }}</span>
196196
<kbd class="ml-auto rounded border border-white/20 px-2 py-0.5 text-xs font-semibold">
197197
⌘K
198198
</kbd>

0 commit comments

Comments
 (0)