diff --git a/src/EventListener/CurrentTranslationLoader.php b/src/EventListener/CurrentTranslationLoader.php index 548f805..49f71cc 100644 --- a/src/EventListener/CurrentTranslationLoader.php +++ b/src/EventListener/CurrentTranslationLoader.php @@ -111,7 +111,7 @@ function ($item) use ($translationService, $languageOrLocale, $propertyAccessor) if ($languageOrLocale instanceof Language) { return $translationLanguage == $languageOrLocale; } else { - $translationLanguage->getLocale() == $languageOrLocale; + return $translationLanguage->getLocale() == $languageOrLocale; } } )->first();