Fix bug in json type locales check

This commit is contained in:
Matej Bačo
2022-10-07 07:55:40 +00:00
parent ac75abae77
commit 11eaf68adf
+2 -5
View File
@@ -45,11 +45,7 @@ $cli
Console::log('"' . $key . '" missing in "' . $language . '".');
}
} else if ($type === 'json') {
if(!(\array_key_exists($language, $results))) {
$results[$language] = [];
}
$results[$language] = $key;
$results[$language] = $missing;
}
}
}
@@ -57,6 +53,7 @@ $cli
$type !== 'json' && Console::info('To get detailed information about missing translations, run the command with --type=debug parameter. Use --type=json to get JSON formatted results.');
if($type === 'json') {
\var_dump($results);
Console::log(\json_encode($results));
}