complete story 1.3 with qa test (please not that the previous commit msg was wrong the previous commit was story 1.2
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<div class="flex items-center gap-2">
|
||||
<a
|
||||
href="{{ route('language.switch', 'ar') }}"
|
||||
@class([
|
||||
'text-sm px-2 py-1 rounded transition-colors',
|
||||
'bg-gold text-navy font-bold' => app()->getLocale() === 'ar',
|
||||
'text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-100' => app()->getLocale() !== 'ar',
|
||||
])
|
||||
data-test="language-switch-ar"
|
||||
>
|
||||
العربية
|
||||
</a>
|
||||
<span class="text-zinc-400 dark:text-zinc-600">|</span>
|
||||
<a
|
||||
href="{{ route('language.switch', 'en') }}"
|
||||
@class([
|
||||
'text-sm px-2 py-1 rounded transition-colors',
|
||||
'bg-gold text-navy font-bold' => app()->getLocale() === 'en',
|
||||
'text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-100' => app()->getLocale() !== 'en',
|
||||
])
|
||||
data-test="language-switch-en"
|
||||
>
|
||||
English
|
||||
</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user