Skip to content

Commit

Permalink
On Locale change - re init all translations in managed entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Hristov committed Apr 3, 2017
1 parent c09a36f commit 95579ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/CurrentTranslationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 95579ac

Please sign in to comment.