Fixed an issue with displaying the translation of site.Menu if the project language did not match the system language.

This commit is contained in:
Leonid Nikitin 2024-07-26 22:15:33 +05:00
parent 8bc4c0d8d0
commit 618c925dfa
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D

View File

@ -37,7 +37,7 @@
</header>
<div class="main-container">
<nav id="menu">
<div class="menu__title">{{ __('site.Menu') }}</div>
<div class="menu__title">{{ $websiteTranslations->translate('site.Menu') }}</div>
<ul>
<li><a href="{{ \App\Enums\Site\ProjectSection::Home->url($project, $websiteTranslations->getLanguage()) }}" @class(['active' => request()->route()->named(['home', 'language.home', 'project.home', 'project.language.home'])])>{{ $websiteTranslations->translate('site.About project') }}</a></li>
<li><a href="{{ \App\Enums\Site\ProjectSection::Documentation->url($project, $websiteTranslations->getLanguage()) }}" @class(['active' => request()->route()->named(['documentation', 'documentation.home'])])>{{ $websiteTranslations->translate('site.Documentation') }}</a></li>