Only check translations insteda of the full file

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-04-01 11:12:00 +02:00
parent 3cf447ac44
commit 2228b285c5
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}