Skip to content

Commit 1aead02

Browse files
committed
Update Translator.php
1 parent a49ab40 commit 1aead02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Filesystem/Translator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(?string $locale = null)
3333
parent::__construct($locale, $this->getTranslatePath());
3434

3535
// Check
36-
if ( !$this->canTranslate && $this->isDebug() ) {
36+
if ( !$this->canTranslate && $this->isDebug() && $this->isEnv('dev') ) {
3737
$logger = new Logger('core');
3838
$logger->warning("Invalid language locale [{$locale}]");
3939
}

0 commit comments

Comments
 (0)