Skip to content

Commit

Permalink
Merge pull request #1499 from bolt/bugfix/current-locale
Browse files Browse the repository at this point in the history
Fix current locale to be correct
  • Loading branch information
bobdenotter authored Jun 17, 2020
2 parents 4de73de + 84a6d43 commit 39f9e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/LocaleHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getLocales(Environment $twig, ?Collection $localeCodes = null, b

private function isCurrentLocale(string $localeCode, string $currentLocale, Collection $localeCodes): bool
{
if (! $localeCodes->has($currentLocale)) {
if (! $localeCodes->contains($currentLocale)) {
return $localeCode === $this->defaultLocale;
}

Expand Down

0 comments on commit 39f9e32

Please sign in to comment.