Only check translations insteda of the full file

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/26375/head
Joas Schilling 3 years ago
parent 3cf447ac44
commit 2228b285c5
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA

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

Loading…
Cancel
Save