Skip to content

Commit

Permalink
fix lang switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Headary committed Apr 5, 2024
1 parent 9b9ea01 commit 8471e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Components/Navigation/navigation.latte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
{if $hasI18n}
<ul class="nav navbar-nav ml-auto">
<li class="navbar-text real-clock" data-timestamp="{1000 * time()}"></li>
{var $otherLanguage = $lang}
{var $otherLanguage = $lang == App\Modules\Core\Language::cs ? App\Modules\Core\Language::en : App\Modules\Core\Language::cs}
<li class="nav-item">
<a class="nav-link" href="{plink this, lang => $otherLanguage->value}">
<span><i class="{$control::mapLangToIcon($otherLanguage)}"></i></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<li>Soutěž probíhá jak v českém, tak v anglickém jazyce.</li>
<li>Účast je zcela zdarma.</li>
<li>Soutěž se koná {$newestEvent->begin |date:'j. n. Y'} 17:00 - 20:00.</li>
<li>Registrace je otevřena od {$$newestEvent->registrationBegin |date:'j. n.'} do {$newestEvent->registrationEnd |date:'j. n. H:i'}.</li>
<li>Registrace je otevřena od {$newestEvent->registrationBegin |date:'j. n.'} do {$newestEvent->registrationEnd |date:'j. n. H:i'}.</li>

</ul>
{default}
Expand Down

0 comments on commit 8471e97

Please sign in to comment.