From 2ab10a7c6bb64cfb9e069f45a23b1a3ca5fc3125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kud=C4=9Blka?= Date: Fri, 25 Nov 2022 11:43:13 +0100 Subject: [PATCH] Passing locale parameter to getCatalogue method (#112) --- src/Translator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Translator.php b/src/Translator.php index 969c1b8..e865865 100644 --- a/src/Translator.php +++ b/src/Translator.php @@ -376,7 +376,7 @@ public function trans( if ($id !== null) { if ($this->psrLogger !== null) { - if (!$this->getCatalogue()->has($id, $domain)) { + if (!$this->getCatalogue($locale)->has($id, $domain)) { $this->psrLogger ->notice( 'Missing translation', @@ -390,7 +390,7 @@ public function trans( } if ($this->tracyPanel !== null) { - if (!$this->getCatalogue()->has($id, $domain)) { + if (!$this->getCatalogue($locale)->has($id, $domain)) { $this->tracyPanel ->addMissingTranslation($id, $domain); }