Only check translations insteda of the full file
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3cf447ac44
commit
2228b285c5
|
@ -49,7 +49,7 @@ foreach ($directories as $dir) {
|
||||||
$json = json_decode($content, true);
|
$json = json_decode($content, true);
|
||||||
|
|
||||||
$translations = json_encode($json['translations']);
|
$translations = json_encode($json['translations']);
|
||||||
if (strpos($content, '|') !== false) {
|
if (strpos($translations, '|') !== false) {
|
||||||
$errors[] = $file->getPathname() . "\n" . ' ' . 'Contains a | in the translations' . "\n";
|
$errors[] = $file->getPathname() . "\n" . ' ' . 'Contains a | in the translations' . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue