Skip to content

Commit

Permalink
Passing locale parameter to getCatalogue method (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi authored Nov 25, 2022
1 parent eea8999 commit 2ab10a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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);
}
Expand Down

0 comments on commit 2ab10a7

Please sign in to comment.