mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix bug in json type locales check
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user