From 90aac2c60b65748b4af5898df7c39799a6d96bfb Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Mon, 28 Nov 2022 11:48:59 +0100 Subject: [PATCH] Only check for enabled locales if not empty --- src/Source/SymfonySourceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Source/SymfonySourceProvider.php b/src/Source/SymfonySourceProvider.php index a316225..a8795a5 100644 --- a/src/Source/SymfonySourceProvider.php +++ b/src/Source/SymfonySourceProvider.php @@ -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; }