localization from boboko core and product service too

This commit is contained in:
elvira
2026-08-26 18:28:16 +03:00
parent 092fab8740
commit 90e32e337d
15 changed files with 374 additions and 169 deletions
+4 -2
View File
@@ -15,10 +15,12 @@
<title>@yield('title', config('app.name'))</title>
<meta name="description" content="@yield('description', '')">
{{-- Reciprocal hreflang: self-reference + the alternate locale + x-default --}}
{{-- Reciprocal hreflang: self-reference + every alternate locale + x-default --}}
@isset($currentLocale)
<link rel="alternate" hreflang="{{ $currentLocale }}" href="{{ url()->current() }}" />
<link rel="alternate" hreflang="{{ $altLocale }}" href="{{ $altLocaleUrl }}" />
@foreach ($altLocales ?? [] as $altLocale)
<link rel="alternate" hreflang="{{ $altLocale['code'] }}" href="{{ $altLocale['url'] }}" />
@endforeach
<link rel="alternate" hreflang="x-default" href="{{ url('/') }}" />
@endisset