Skip to content

Commit

Permalink
Only check for enabled locales if not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen committed Nov 28, 2022
1 parent 4e6c375 commit 90aac2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Source/SymfonySourceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getTranslations(string $domain): TranslationCollection
continue;
}

if (!in_array($file->locale(), $this->enabledLocales, true)) {
if ($this->enabledLocales && !in_array($file->locale(), $this->enabledLocales, true)) {
continue;
}

Expand Down

0 comments on commit 90aac2c

Please sign in to comment.