diff --git a/build/translation-checker.php b/build/translation-checker.php index 2c3a7856d8..53c139a1d6 100644 --- a/build/translation-checker.php +++ b/build/translation-checker.php @@ -49,7 +49,7 @@ foreach ($directories as $dir) { $json = json_decode($content, true); $translations = json_encode($json['translations']); - if (strpos($content, '|') !== false) { + if (strpos($translations, '|') !== false) { $errors[] = $file->getPathname() . "\n" . ' ' . 'Contains a | in the translations' . "\n"; }